You are here

public function MessageCatalogueTest::testAddFallbackCatalogueWithParentCircularReference in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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);
}