You are here

public function Abstract2Dot5ApiTest::testValidateFailsIfNoConstraintsAndNoObjectOrArray in Plug 7

@expectedException \Symfony\Component\Validator\Exception\RuntimeException

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Validator/Abstract2Dot5ApiTest.php, line 695

Class

Abstract2Dot5ApiTest
Verifies that a validator satisfies the API of Symfony 2.5+.

Namespace

Symfony\Component\Validator\Tests\Validator

Code

public function testValidateFailsIfNoConstraintsAndNoObjectOrArray() {
  $this
    ->validate('Foobar');
}