Exemplo n.º 1
0
 public function testLoadEmptyResource()
 {
     $loader = new QtFileLoader();
     $resource = __DIR__ . '/../fixtures/empty.xlf';
     $this->setExpectedException('Symfony\\Component\\Translation\\Exception\\InvalidResourceException', sprintf('Unable to load "%s".', $resource));
     $loader->load($resource, 'en', 'domain1');
 }
Exemplo n.º 2
0
 /**
  * @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
  */
 public function testLoadInvalidResource()
 {
     $loader = new QtFileLoader();
     $resource = __DIR__ . '/../fixtures/invalid-xml-resources.xlf';
     $loader->load($resource, 'en', 'domain1');
 }