You are here

public function MessageCatalogueTest::testAddFallbackCatalogueWithFallbackCircularReference 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::testAddFallbackCatalogueWithFallbackCircularReference()

@expectedException \LogicException

File

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

Class

MessageCatalogueTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testAddFallbackCatalogueWithFallbackCircularReference() {
  $fr = new MessageCatalogue('fr');
  $en = new MessageCatalogue('en');
  $es = new MessageCatalogue('es');
  $fr
    ->addFallbackCatalogue($en);
  $es
    ->addFallbackCatalogue($en);
  $en
    ->addFallbackCatalogue($fr);
}