Created
April 7, 2010 10:21
-
-
Save davidcoallier/358724 to your computer and use it in GitHub Desktop.
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 | |
require_once 'PHPUnit/Framework.php'; | |
require_once 'PHPUnit/Framework/Assert.php'; | |
// Mock object | |
class ServicesAtlassianCrowdMock | |
{ | |
public function methodOne() { return true; } | |
} | |
// The actual test | |
class ServicesAtlassianCrowdMockTest extends PHPUnit_Framework_TestCase | |
{ | |
private $mock; | |
public function setUp() | |
{ | |
$this->mock = new ServicesAtlassianCrowdMock(); | |
} | |
public function isTrueLive() | |
{ | |
PHPUnit_Framework_Assert::assertTrue(null); | |
} | |
} | |
$test = new ServicesAtlassianCrowdMockTest(); | |
var_dump($test->isTrueLive()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment