Selaa lähdekoodia

[Translation] changed some unit tests for PHPUnit 3.6.0 compatibility

Fabien Potencier 13 vuotta sitten
vanhempi
commit
92d19063a8

+ 2 - 2
tests/Symfony/Tests/Component/Translation/Loader/XliffFileLoaderTest.php

@@ -28,7 +28,7 @@ class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase
     }
     }
 
 
     /**
     /**
-     * @expectedException Exception
+     * @expectedException \RuntimeException
      */
      */
     public function testLoadInvalidResource()
     public function testLoadInvalidResource()
     {
     {
@@ -37,7 +37,7 @@ class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase
     }
     }
 
 
     /**
     /**
-     * @expectedException Exception
+     * @expectedException \RuntimeException
      */
      */
     public function testLoadResourceDoesNotValidate()
     public function testLoadResourceDoesNotValidate()
     {
     {