You are here

public function MessageCatalogueTest::testAddFallbackCatalogueWithCircularReference in Plug 7

@expectedException \LogicException

File

lib/Symfony/translation/Tests/MessageCatalogueTest.php, line 130

Class

MessageCatalogueTest

Namespace

Symfony\Component\Translation\Tests

Code

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