Skip to content

Instantly share code, notes, and snippets.

@sergekukharev
Created December 7, 2015 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergekukharev/1f72df6d6f1d3d83ef2c to your computer and use it in GitHub Desktop.
Save sergekukharev/1f72df6d6f1d3d83ef2c to your computer and use it in GitHub Desktop.
<?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