public function testSetApiVersion24And25() { if (version_compare(PHP_VERSION, '5.3.9', '<')) { $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()); }
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()); }
/** * @group legacy */ public function testLegacySetApiVersion24And25() { $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED); $this->assertSame($this->builder, $this->builder->setApiVersion(Validation::API_VERSION_2_5_BC)); $this->assertInstanceOf('Symfony\\Component\\Validator\\Validator\\LegacyValidator', $this->builder->getValidator()); }