public function MessageCatalogueTest::testGetAddResource in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/Tests/MessageCatalogueTest.php \Symfony\Component\Translation\Tests\MessageCatalogueTest::testGetAddResource()
File
- vendor/
symfony/ translation/ Tests/ MessageCatalogueTest.php, line 162
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testGetAddResource() {
$catalogue = new MessageCatalogue('en');
$r = $this
->getMock('Symfony\\Component\\Config\\Resource\\ResourceInterface');
$r
->expects($this
->any())
->method('__toString')
->will($this
->returnValue('r'));
$catalogue
->addResource($r);
$catalogue
->addResource($r);
$r1 = $this
->getMock('Symfony\\Component\\Config\\Resource\\ResourceInterface');
$r1
->expects($this
->any())
->method('__toString')
->will($this
->returnValue('r1'));
$catalogue
->addResource($r1);
$this
->assertEquals(array(
$r,
$r1,
), $catalogue
->getResources());
}