class AllTest in Plug 7
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- class \Symfony\Component\Validator\Tests\Constraints\AllTest extends \Symfony\Component\Validator\Tests\Constraints\PHPUnit_Framework_TestCase
Expanded class hierarchy of AllTest
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ AllTest.php, line 20
Namespace
Symfony\Component\Validator\Tests\ConstraintsView source
class AllTest extends \PHPUnit_Framework_TestCase {
/**
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testRejectNonConstraints() {
new All(array(
'foo',
));
}
/**
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testRejectValidConstraint() {
new All(array(
new Valid(),
));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AllTest:: |
public | function | @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException | |
AllTest:: |
public | function | @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException |