This file contains hidden or 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 TestMyObjectLoader extends PHPUnit_Framework_TestCase | |
{ | |
protected $mockObject; | |
public function setUp() | |
{ | |
$this->mockObject = $this->getMockForAbstractClass('Project\MyObject', [], '', true, true, true, ['initialize', '__get']); | |
} | |
This file contains hidden or 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
/** | |
* Creates an exclusive lock | |
* @param $lockDir Directory to create/access lock file | |
* @param $lockName Name for lock | |
* @param $lockHandle Reference to scope var to maintain file handle after lock call completes | |
* @return bool | |
* @throws Exception on $lockdir not writable, unable to create file handle, unable to obtain ex_lock | |
*/ | |
function lock($lockDir, $lockName, &$lockHandle) | |
{ |
This file contains hidden or 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
<?php | |
/** | |
* Requires | |
* "swiftmailer/swiftmailer": "5.*" | |
* "aws/aws-sdk-php": "2.7.25" | |
*/ | |
use Aws\Common\Credentials\Credentials; | |
use Aws\Ses\SesClient; |
This file contains hidden or 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
<?php | |
/** | |
* Requires | |
* "aws/aws-sdk-php": "2.7.25", | |
*/ | |
use Aws\Common\Credentials\Credentials; | |
use Aws\S3\S3Client; | |
require_once __DIR__ . '/../vendor/autoload.php'; |
This file contains hidden or 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
[alias] | |
recent="!myf() { git for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:red)%(objectname:short)%(color:reset)|%(color:blue)%(authorname)%(color:reset)|%(color:bold green)%(committerdate:relative)%(color:reset)|%(color:yellow)%(refname:short)%(color:reset)|%(contents:subject)' --color=always --count=20 | column -ts '|';}; myf" | |
logline="!myf2() { git -P log -15 --graph --pretty=format:'%Cred%h%Creset - %Cblue%an%Creset %C(bold green) %cr %Creset %s %C(yellow)%d%Creset' --abbrev-commit; }; myf2" |