previousTutorial (Previous) (Next) PHPUnit::TestCasenext

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

PHPUnit::run()

PHPUnit::run() – runs a TestSuite and returns a TestResult object.

Synopsis

require_once 'PHPUnit.php';

object PHPUnit::run ( object $suite )

Description

Executes the given test suite

Parameter

  • object $suite - an object of PHPUnit_TestSuite

Return value

&PHPUnit_Result - A reference to a PHPUnit_Result.

Example

Using PHPUnit::run()

<?php
require_once "PHPUnit.php";
$suite  = New PHPUnit_TestSuite('Mathtest');
$result PHPUnit::run($suite);
echo 
$result->toHtml();
?>
previousTutorial (Previous) (Next) PHPUnit::TestCasenext

Download Documentation Last updated: Tue, 02 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.