This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Execute: node spread-destructuring-rest-operator.js | |
// #### Spread Operator #### | |
const e1 = 'CODE'; | |
const r1 = [...e1]; | |
console.log('[01]', r1) | |
// Output => [ 'C', 'O', 'D', 'E' ] | |
const e2 = ['This', 'is', 'a', 'sentence']; | |
console.log('[02]', ...e2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MockTraitMethodTest extends \PHPUnit_Framework_TestCase | |
{ | |
public function testTraitMock() | |
{ | |
// Inspect getMockForTrait signature for what the other arguments do. | |
$methodsToMock = ['getBar']; | |
$mockTrait = $this->getMockForTrait('\Example\Foo', [], '', true, true, true, $methodsToMock); | |
$mockTrait->expects($this->any()) | |
->method('getBar') | |
->willReturn('buz'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
cinst binroot | |
cinst git.install | |
cinst 7zip.install | |
cinst GoogleChrome | |
cinst fiddler4 | |
cinst git-credential-winstore | |
cinst sublimetext3 |