Skip to content

Commit 243475a

Browse files
committed
Set back libxml settings after testings.
1 parent f2dbeb8 commit 243475a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/Loader/XliffFileLoaderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testLoad()
3030

3131
public function testLoadWithInternalErrorsEnabled()
3232
{
33-
libxml_use_internal_errors(true);
33+
$internalErrors = libxml_use_internal_errors(true);
3434

3535
$this->assertSame(array(), libxml_get_errors());
3636

@@ -41,6 +41,9 @@ public function testLoadWithInternalErrorsEnabled()
4141
$this->assertEquals('en', $catalogue->getLocale());
4242
$this->assertEquals(array(new FileResource($resource)), $catalogue->getResources());
4343
$this->assertSame(array(), libxml_get_errors());
44+
45+
libxml_clear_errors();
46+
libxml_use_internal_errors($internalErrors);
4447
}
4548

4649
public function testLoadWithResname()

0 commit comments

Comments
 (0)