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 testGetFalse_ReturnsFalse_Green () { $sut = new DummyClass(); $this->assertFalse( $sut->get_false() ); } public function testGetTrue_ReturnsFalse_Failure () { $sut = new DummyClass(); $this->assertTrue( ! $sut->get_true() ); } public function testGetTrue_ReturnsTrue2_Green () { $sut = new DummyClass(); $this->assertTrue( $sut->get_true() ); } public function testGetTrue_ContainsTypo_Error () { $sut = new DummyClass(); $result = $sut->get_true(); $this->assertTrue( $resullllt ); } public function testWhatever_Unfinished_MarkedIncomplete () { $this->markTestIncomplete(); } public function testWhatever_Unfinished_MarkedSkipped () { $this->markTestSkipped(); } public function testGetFalse_ReturnsFalse2_Green () { $sut = new DummyClass(); $this->assertFalse( $sut->get_false() ); } public function testGetTrue_ReturnsFalse2_Failure () { $sut = new DummyClass(); $this->assertTrue( ! $sut->get_true() ); } } ?>