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

Class: PHPUnit2_Extensions_PerformanceTestCase

Source Location: /PHPUnit2-3.0.0alpha11/Extensions/PerformanceTestCase.php

Class Overview

PHPUnit2_Framework_Assert
   |
   --PHPUnit2_Framework_TestCase
      |
      --PHPUnit2_Extensions_PerformanceTestCase

A TestCase that expects a TestCase to be executed meeting a given time limit.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: PHPUnit2_Framework_TestCase

PHPUnit2_Framework_TestCase::__construct()
Constructs a test case with the given name.
PHPUnit2_Framework_TestCase::at()
PHPUnit2_Framework_TestCase::atLeastOnce()
PHPUnit2_Framework_TestCase::count()
Counts the number of test cases executed by run(TestResult result).
PHPUnit2_Framework_TestCase::createResult()
Creates a default TestResult object.
PHPUnit2_Framework_TestCase::exactly()
PHPUnit2_Framework_TestCase::getMock()
Returns a mock object for the specified class.
PHPUnit2_Framework_TestCase::getName()
Gets the name of a TestCase.
PHPUnit2_Framework_TestCase::iniSet()
This method is a wrapper for the ini_set() function that automatically resets the modified php.ini setting to its original value after the test is run.
PHPUnit2_Framework_TestCase::never()
PHPUnit2_Framework_TestCase::once()
PHPUnit2_Framework_TestCase::onConsecutiveCalls()
PHPUnit2_Framework_TestCase::returnValue()
PHPUnit2_Framework_TestCase::run()
Runs the test case and collects the results in a TestResult object.
PHPUnit2_Framework_TestCase::runBare()
Runs the bare test sequence.
PHPUnit2_Framework_TestCase::runTest()
Override to run the test and assert its state.
PHPUnit2_Framework_TestCase::setName()
Sets the name of a TestCase.
PHPUnit2_Framework_TestCase::setUp()
Sets up the fixture, for example, open a network connection.
PHPUnit2_Framework_TestCase::tearDown()
Tears down the fixture, for example, close a network connection.
PHPUnit2_Framework_TestCase::toString()
Returns a string representation of the test case.

Class: PHPUnit2_Framework_Assert

PHPUnit2_Framework_Assert::__construct()
Protect constructor since it is a static only class.
PHPUnit2_Framework_Assert::anything()
PHPUnit2_Framework_Assert::arrayContains()
PHPUnit2_Framework_Assert::arrayHasKey()
PHPUnit2_Framework_Assert::assertArrayHasKey()
Asserts that an array has a specified key.
PHPUnit2_Framework_Assert::assertArrayNotHasKey()
Asserts that an array does not have a specified key.
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::assertFileExists()
Asserts that a file exists.
PHPUnit2_Framework_Assert::assertFileNotExists()
Asserts that a file does not exist.
PHPUnit2_Framework_Assert::assertHasProperty()
Asserts that an object has a specified property.
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::assertNotHasProperty()
Asserts that an object does not have a specified property.
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::assertThat()
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::equalTo()
PHPUnit2_Framework_Assert::fail()
Fails a test with the given message.
PHPUnit2_Framework_Assert::failConstraint()
Fails a test based on a failed constraint.
PHPUnit2_Framework_Assert::fileExists()
PHPUnit2_Framework_Assert::getNonPublicProperty()
Returns the value of an object's property that is declared protected or private.
PHPUnit2_Framework_Assert::greaterThan()
PHPUnit2_Framework_Assert::hasProperty()
PHPUnit2_Framework_Assert::identicalTo()
PHPUnit2_Framework_Assert::isInstanceOf()
PHPUnit2_Framework_Assert::isType()
PHPUnit2_Framework_Assert::lessThan()
PHPUnit2_Framework_Assert::logicalAnd()
Logical AND.
PHPUnit2_Framework_Assert::logicalNot()
Logical NOT.
PHPUnit2_Framework_Assert::logicalOr()
Logical OR.
PHPUnit2_Framework_Assert::markTestIncomplete()
Mark the test as incomplete.
PHPUnit2_Framework_Assert::markTestSkipped()
Mark the test as skipped.
PHPUnit2_Framework_Assert::matchesRegularExpression()
PHPUnit2_Framework_Assert::stringContains()

Class Details

[line 68]
A TestCase that expects a TestCase to be executed meeting a given time limit.


[ Top ]


Method Detail

getMaxRunningTime   [line 119]

integer getMaxRunningTime( )

  • Since: Method available since Release 2.3.0
  • Access: public

[ Top ]

runTest   [line 79]

void runTest( )

  • Access: protected

Overrides PHPUnit2_Framework_TestCase::runTest() (Override to run the test and assert its state.)
[ Top ]

setMaxRunningTime   [line 104]

void setMaxRunningTime( integer $maxRunningTime)

  • Throws: InvalidArgumentException
  • Since: Method available since Release 2.3.0
  • Access: public

Parameters:

integer   $maxRunningTime   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.