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

Class: PHPUnit2_Framework_Assert

Source Location: /PHPUnit2-3.0.0alpha11/Framework/Assert.php

Class Overview


A set of assert methods.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Child classes:

PHPUnit2_Extensions_TestDecorator
A Decorator for Tests.
PHPUnit2_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Inherited Variables

Inherited Methods


Class Details

[line 75]
A set of assert methods.


[ Top ]


Method Detail

assertArrayHasKey   [line 96]

void assertArrayHasKey( mixed $key, mixed {if(!(is_integer($key, array $array, string $message)

Asserts that an array has a specified key.
  • Since: Method available since Release 3.0.0
  • Static: This method can be called statically
  • Access: public

Parameters:

mixed   $key     
array   $array     
string   $message     

[ Top ]

__construct   [line 82]

void __construct( )

Protect constructor since it is a static only class.
  • Access: protected

Overridden in child classes as:

PHPUnit2_Extensions_TestDecorator::__construct()
Constructor.
PHPUnit2_Extensions_RepeatedTest::__construct()
Constructor.
PHPUnit2_Framework_TestCase::__construct()
Constructs a test case with the given name.
PHPUnit2_Framework_Warning::__construct()

[ Top ]


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