You are here

public function ValidatorBuilderTest::testLegacySetApiVersion24 in Plug 7

@group legacy

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/ValidatorBuilderTest.php, line 132

Class

ValidatorBuilderTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testLegacySetApiVersion24() {
  $this
    ->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
  $this
    ->assertSame($this->builder, $this->builder
    ->setApiVersion(Validation::API_VERSION_2_4));
  $this
    ->assertInstanceOf('Symfony\\Component\\Validator\\Validator', $this->builder
    ->getValidator());
}