PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: PHPUnit2_Extensions_RepeatedTest

Source Location: /PHPUnit2-2.3.6/Extensions/RepeatedTest.php

Class Overview

PHPUnit2_Framework_Assert
   |
   --PHPUnit2_Extensions_TestDecorator
      |
      --PHPUnit2_Extensions_RepeatedTest

A Decorator that runs a test repeatedly.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods

Class: PHPUnit2_Extensions_TestDecorator

PHPUnit2_Extensions_TestDecorator::basicRun()
Runs the test and collects the result in a TestResult.
PHPUnit2_Extensions_TestDecorator::countTestCases()
Counts the number of test cases that will be run by this test.
PHPUnit2_Extensions_TestDecorator::createResult()
Creates a default TestResult object.
PHPUnit2_Extensions_TestDecorator::getTest()
Returns the test to be run.
PHPUnit2_Extensions_TestDecorator::run()
Runs the decorated test and collects the result in a TestResult.
PHPUnit2_Extensions_TestDecorator::toString()
Returns a string representation of the test.
PHPUnit2_Extensions_TestDecorator::__construct()
Constructor.

Class: PHPUnit2_Framework_Assert

PHPUnit2_Framework_Assert::assertContains()
Asserts that a haystack contains a needle.
PHPUnit2_Framework_Assert::assertEquals()
Asserts that two variables are equal.
PHPUnit2_Framework_Assert::assertFalse()
Asserts that a condition is false.
PHPUnit2_Framework_Assert::assertNotContains()
Asserts that a haystack does not contain a needle.
PHPUnit2_Framework_Assert::assertNotEquals()
Asserts that two variables are not equal.
PHPUnit2_Framework_Assert::assertNotNull()
Asserts that a variable is not NULL.
PHPUnit2_Framework_Assert::assertNotRegExp()
Asserts that a string does not match a given regular expression.
PHPUnit2_Framework_Assert::assertNotSame()
Asserts that two variables do not have the same type and value.
PHPUnit2_Framework_Assert::assertNotType()
Asserts that a variable is not of a given type.
PHPUnit2_Framework_Assert::assertNull()
Asserts that a variable is NULL.
PHPUnit2_Framework_Assert::assertRegExp()
Asserts that a string matches a given regular expression.
PHPUnit2_Framework_Assert::assertSame()
Asserts that two variables have the same type and value.
PHPUnit2_Framework_Assert::assertTrue()
Asserts that a condition is true.
PHPUnit2_Framework_Assert::assertType()
Asserts that a variable is of a given type.
PHPUnit2_Framework_Assert::fail()
Fails a test with the given message.
PHPUnit2_Framework_Assert::format()
PHPUnit2_Framework_Assert::setLooselyTyped()
PHPUnit2_Framework_Assert::__construct()
Protect constructor since it is a static only class.

Class Details

[line 63]
A Decorator that runs a test repeatedly.


[ Top ]


Method Detail

countTestCases   [line 98]

integer countTestCases( )

Counts the number of test cases that will be run by this test.
  • Access: public

Overrides PHPUnit2_Extensions_TestDecorator::countTestCases() (Counts the number of test cases that will be run by this test.)
[ Top ]

run   [line 111]

PHPUnit2_Framework_TestResult run( [PHPUnit2_Framework_TestResult $result = NULL])

Runs the decorated test and collects the result in a TestResult.
  • Access: public
  • Throws: Exception

Overrides PHPUnit2_Extensions_TestDecorator::run() (Runs the decorated test and collects the result in a TestResult.)

Parameters:

PHPUnit2_Framework_TestResult   $result     

[ Top ]

__construct   [line 78]

void __construct( mixed PHPUnit2_Framework_Test$test, [integer $timesRepeat = 1], PHPUnit2_Framework_Test $test)

Constructor.
  • Access: public
  • Throws: Exception

Overrides PHPUnit2_Extensions_TestDecorator::__construct() (Constructor.)

Parameters:

PHPUnit2_Framework_Test   $test     
integer   $timesRepeat     

[ Top ]


Documentation generated on Tue, 12 Sep 2006 09:35:21 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.