You are here

public function MessageCatalogueTest::testAddFallbackCatalogueWithParentCircularReference in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Tests/MessageCatalogueTest.php \Symfony\Component\Translation\Tests\MessageCatalogueTest::testAddFallbackCatalogueWithParentCircularReference()

@expectedException \LogicException

File

vendor/symfony/translation/Tests/MessageCatalogueTest.php, line 130

Class

MessageCatalogueTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testAddFallbackCatalogueWithParentCircularReference() {
  $main = new MessageCatalogue('en_US');
  $fallback = new MessageCatalogue('fr_FR');
  $fallback
    ->addFallbackCatalogue($main);
  $main
    ->addFallbackCatalogue($fallback);
}