CodeView
Back to article:
prod
tests
integration
reference-output
Ko
resources
test-clones
xml
custom-file
default-file
dist-file
special
tools
Base
Ko
unit
<?php require_once( dirname( __file__ ) . '/DummyClass.php' ); class DummyClassTest extends PHPUnit_Framework_TestCase { public function testGetTrue_ReturnsTrue_Green () { $sut = new DummyClass(); $this->assertTrue( $sut->get_true() ); } public function testNonexistentMethod_CausesFatalError () { $sut = new DummyClass(); $this->assertFalse( $sut->i_dont_exist() ); } } ?>