"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

XmlFileLoaderTest.php  (phplist-3.4.5.tgz):XmlFileLoaderTest.php  (phplist-3.4.6.tgz)
skipping to change at line 117 skipping to change at line 117
$expected->setGroupSequenceProvider(true); $expected->setGroupSequenceProvider(true);
$this->assertEquals($expected, $metadata); $this->assertEquals($expected, $metadata);
} }
public function testThrowExceptionIfDocTypeIsSet() public function testThrowExceptionIfDocTypeIsSet()
{ {
$loader = new XmlFileLoader(__DIR__.'/withdoctype.xml'); $loader = new XmlFileLoader(__DIR__.'/withdoctype.xml');
$metadata = new ClassMetadata('Symfony\Component\Validator\Tests\Fixture s\Entity'); $metadata = new ClassMetadata('Symfony\Component\Validator\Tests\Fixture s\Entity');
$this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpected Exception'}('\Symfony\Component\Validator\Exception\MappingException'); $this->expectException('\Symfony\Component\Validator\Exception\MappingEx ception');
$loader->loadClassMetadata($metadata); $loader->loadClassMetadata($metadata);
} }
/** /**
* @see https://github.com/symfony/symfony/pull/12158 * @see https://github.com/symfony/symfony/pull/12158
*/ */
public function testDoNotModifyStateIfExceptionIsThrown() public function testDoNotModifyStateIfExceptionIsThrown()
{ {
$loader = new XmlFileLoader(__DIR__.'/withdoctype.xml'); $loader = new XmlFileLoader(__DIR__.'/withdoctype.xml');
$metadata = new ClassMetadata('Symfony\Component\Validator\Tests\Fixture s\Entity'); $metadata = new ClassMetadata('Symfony\Component\Validator\Tests\Fixture s\Entity');
try { try {
$loader->loadClassMetadata($metadata); $loader->loadClassMetadata($metadata);
} catch (MappingException $e) { } catch (MappingException $e) {
$this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpe ctedException'}('\Symfony\Component\Validator\Exception\MappingException'); $this->expectException('\Symfony\Component\Validator\Exception\Mappi ngException');
$loader->loadClassMetadata($metadata); $loader->loadClassMetadata($metadata);
} }
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)