Skip to content

Instantly share code, notes, and snippets.

@davidcoallier
Created April 7, 2010 10:21
Show Gist options
  • Save davidcoallier/358724 to your computer and use it in GitHub Desktop.
Save davidcoallier/358724 to your computer and use it in GitHub Desktop.
<?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