Created
December 7, 2015 17:00
-
-
Save sergekukharev/1f72df6d6f1d3d83ef2c to your computer and use it in GitHub Desktop.
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
<?php | |
class Bob_Validator_BooleanTest extends PHPUnit_Framework_TestCase | |
{ | |
public function setUp() { | |
$this->authorizerMock = $this->getMock(Authorizer::class); | |
$this->authorizerMock->expects($this->once()) | |
->method('authorize')->willReturn(true); | |
} | |
public testSomething() { | |
$testObject = new Something($this->authorizerMock); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment