class AllTest

@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

drupal/core/vendor/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