We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2dbeb8 commit 243475aCopy full SHA for 243475a
Tests/Loader/XliffFileLoaderTest.php
@@ -30,7 +30,7 @@ public function testLoad()
30
31
public function testLoadWithInternalErrorsEnabled()
32
{
33
- libxml_use_internal_errors(true);
+ $internalErrors = libxml_use_internal_errors(true);
34
35
$this->assertSame(array(), libxml_get_errors());
36
@@ -41,6 +41,9 @@ public function testLoadWithInternalErrorsEnabled()
41
$this->assertEquals('en', $catalogue->getLocale());
42
$this->assertEquals(array(new FileResource($resource)), $catalogue->getResources());
43
44
+
45
+ libxml_clear_errors();
46
+ libxml_use_internal_errors($internalErrors);
47
}
48
49
public function testLoadWithResname()
0 commit comments