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
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode |
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
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar | |
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar | |
curl -L http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o php-cs-fixer | |
# Those files should be either on /usr/local/bin or /usr/bin depending on your machine | |
sudo mv phpcbf.phar /usr/local/bin/phpcbf | |
sudo mv phpcs.phar /usr/local/bin/phpcs | |
sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer | |
sudo chmod a+x /usr/local/bin/php-cs-fixer |
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
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.1 |
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
$user = [ | |
"username" => $post['username'], | |
"password" => $post['password'], | |
"name" => $post['name'], | |
]; | |
// Simple Mock | |
$mock_class = SomeDamnClass::class; | |
$mock = Mockery::mock($nero_class); | |
$mock->shouldReceive('getUserByUsername') |