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

Class: PHPUnit2_Framework_Constraint_Or

Source Location: /PHPUnit2-3.0.0alpha11/Framework/Constraint/Or.php

Class Overview


Constraint which will only evaluate to true if at least one of the sub-constraints does the same.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

[line 71]
Constraint which will only evaluate to true if at least one of the sub-constraints does the same.

This means the constraint behaves like a logical or. All parameters passed to the constructor will be considered a constraint to check.



[ Top ]


Method Detail

setConstraints   [line 75]

void setConstraints( [mixed {$this->constraints = array $constraints)();foreach($constraintsas$key=>$constraint){if(!($constraintinstanceofPHPUnit2_Framework_Constraint)){$constraintnewPHPUnit2_Framework_Constraint_IsEqual($constraint])


[ Top ]


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