TextUI

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
kpraman
Forum Contributor
Posts: 172
Joined: Fri Oct 13, 2006 10:54 am

TextUI

Post 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
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

If you don't get any responses you might want to try posting on SitePoint because we're SimpleTest users here.
Post Reply