You are here

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\Constraints
View 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