You are here

class AllTest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/AllTest.php \Symfony\Component\Validator\Tests\Constraints\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

vendor/symfony/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