4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Validator\Tests\Constraints;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Validator\Constraints\All;
16 use Symfony\Component\Validator\Constraints\Valid;
19 * @author Bernhard Schussek <bschussek@gmail.com>
21 class AllTest extends TestCase
24 * @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
26 public function testRejectNonConstraints()
34 * @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
36 public function testRejectValidConstraint()