Page 1 of 1

TextUI

Posted: Fri May 18, 2007 3:16 am
by kpraman
I want to output the results in browser. How to use TextUI.

Code: Select all

class ArrayTest extends PHPUnit_Framework_TestCase{
    public function testNewArrayIsEmpty()
	    { 
		       // Create the Array fixture.
			           $fixture = array();
					            // Assert that the size of the Array fixture is 0. 
								       $this->assertEquals(0, sizeof($fixture));
									       }

     public function testArrayContainsAnElement() 
	    {        // Create the Array fixture.
		        $fixture = array();
				         // Add an element to the Array fixture.
						         $fixture[] = 'Element';
								          // Assert that the size of the Array fixture is 1.
										          $this->assertEquals(1, sizeof($fixture));
												      }
}

Code: Select all

$obj->toHTML();
is not working in PHPUnit 3

Posted: Sat May 19, 2007 4:47 am
by Ollie Saunders
If you don't get any responses you might want to try posting on SitePoint because we're SimpleTest users here.