public function ValidatorBuilderTest::testLegacySetApiVersion24And25 in Plug 7
@group legacy
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ ValidatorBuilderTest.php, line 149
Class
Namespace
Symfony\Component\Validator\TestsCode
public function testLegacySetApiVersion24And25() {
$this
->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
if (PHP_VERSION_ID < 50309) {
$this
->markTestSkipped('Not supported prior to PHP 5.3.9');
}
$this
->assertSame($this->builder, $this->builder
->setApiVersion(Validation::API_VERSION_2_5_BC));
$this
->assertInstanceOf('Symfony\\Component\\Validator\\Validator\\LegacyValidator', $this->builder
->getValidator());
}