"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Serializer/Tests/Mapping/Factory/CacheMetadataFactoryTest.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).

CacheMetadataFactoryTest.php  (phplist-3.4.5.tgz):CacheMetadataFactoryTest.php  (phplist-3.4.6.tgz)
skipping to change at line 58 skipping to change at line 58
->expects($this->once()) ->expects($this->once())
->method('hasMetadataFor') ->method('hasMetadataFor')
->willReturn(true) ->willReturn(true)
; ;
$factory = new CacheClassMetadataFactory($decorated, new ArrayAdapter()) ; $factory = new CacheClassMetadataFactory($decorated, new ArrayAdapter()) ;
$this->assertTrue($factory->hasMetadataFor(Dummy::class)); $this->assertTrue($factory->hasMetadataFor(Dummy::class));
} }
/**
* @expectedException \Symfony\Component\Serializer\Exception\InvalidArgumen
tException
*/
public function testInvalidClassThrowsException() public function testInvalidClassThrowsException()
{ {
$this->expectException('Symfony\Component\Serializer\Exception\InvalidAr gumentException');
$decorated = $this->getMockBuilder(ClassMetadataFactoryInterface::class) ->getMock(); $decorated = $this->getMockBuilder(ClassMetadataFactoryInterface::class) ->getMock();
$factory = new CacheClassMetadataFactory($decorated, new ArrayAdapter()) ; $factory = new CacheClassMetadataFactory($decorated, new ArrayAdapter()) ;
$factory->getMetadataFor('Not\Exist'); $factory->getMetadataFor('Not\Exist');
} }
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 1 lines changed or added

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