Example #1
0
 /**
  * @expectedException \RuntimeException
  */
 public function testLoadInvalidResource()
 {
     $loader = new IcuDatFileLoader();
     $catalogue = $loader->load(__DIR__ . '/../fixtures/resourcebundle/res/en.txt', 'en', 'domain1');
 }
 /**
  * @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
  */
 public function testLoadNonExistingResource()
 {
     $loader = new IcuDatFileLoader();
     $loader->load(__DIR__ . '/../fixtures/non-existing.txt', 'en', 'domain1');
 }