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

Class: PHPUnit2_Tests_Framework_TestCaseTest

Source Location: /PHPUnit2-2.0.3/Tests/Framework/TestCaseTest.php

Class Overview

PHPUnit2_Framework_Assert
   |
   --PHPUnit2_Framework_TestCase
      |
      --PHPUnit2_Tests_Framework_TestCaseTest

A test case testing the testing framework.


Author(s):

Copyright:

  • Copyright &copy; 2002-2004 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods

Class: PHPUnit2_Framework_TestCase

PHPUnit2_Framework_TestCase::countTestCases()
Counts the number of test cases executed by run(TestResult result).
PHPUnit2_Framework_TestCase::createResult()
Creates a default TestResult object.
PHPUnit2_Framework_TestCase::getName()
Gets the name of a TestCase.
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.
PHPUnit2_Framework_TestCase::__construct()
Constructs a test case with the given name.

Class: PHPUnit2_Framework_Assert

PHPUnit2_Framework_Assert::assertEquals()
Asserts that two variables are equal.
PHPUnit2_Framework_Assert::assertFalse()
Asserts that a condition is false.
PHPUnit2_Framework_Assert::assertNotNull()
Asserts that an object isn't null.
PHPUnit2_Framework_Assert::assertNotSame()
Asserts that two objects refer not to the same object.
PHPUnit2_Framework_Assert::assertNull()
Asserts that an object is null.
PHPUnit2_Framework_Assert::assertRegExp()
Asserts that a string matches a given regular expression.
PHPUnit2_Framework_Assert::assertSame()
Asserts that two objects refer to the same object.
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 42]
A test case testing the testing framework.


[ Top ]


Method Detail

testCaseToString   [line 43]

void testCaseToString( )


[ Top ]

testError   [line 52]

void testError( )


[ Top ]

testExceptionRunningAndTearDown   [line 56]

void testExceptionRunningAndTearDown( )


[ Top ]

testFailure   [line 70]

void testFailure( )


[ Top ]

testNoArgTestCasePasses   [line 79]

void testNoArgTestCasePasses( )


[ Top ]

testRunAndTearDownFails   [line 90]

void testRunAndTearDownFails( )


[ Top ]

testSetupFails   [line 97]

void testSetupFails( )


[ Top ]

testSuccess   [line 101]

void testSuccess( )


[ Top ]

testTearDownAfterError   [line 105]

void testTearDownAfterError( )


[ Top ]

testTearDownFails   [line 112]

void testTearDownFails( )


[ Top ]

testTearDownSetupFails   [line 116]

void testTearDownSetupFails( )


[ Top ]

testWasRun   [line 123]

void testWasRun( )


[ Top ]

verifyError   [line 130]

void verifyError( mixed PHPUnit2_Framework_TestCase$test)


[ Top ]

verifyFailure   [line 138]

void verifyFailure( mixed PHPUnit2_Framework_TestCase$test)


[ Top ]

verifySuccess   [line 146]

void verifySuccess( mixed PHPUnit2_Framework_TestCase$test)


[ Top ]


Documentation generated on Mon, 27 Sep 2004 04:10:31 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.