CodeView

PHPUnit test harness for Komodo

FatalErrorTst.php

<?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() );
 
        }
 
    }
 
?>