Skip to content

Commit eee4ee6

Browse files
committed
Merge branch '2.3' into 2.7
* 2.3: added the new Composer exclude-from-classmap option fix expected argument type docblock Set back libxml settings after testings. fixed Twig deprecation notices
2 parents 6ccd928 + db449a0 commit eee4ee6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
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()

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
"psr/log": "To use logging capability in translator"
3434
},
3535
"autoload": {
36-
"psr-4": { "Symfony\\Component\\Translation\\": "" }
36+
"psr-4": { "Symfony\\Component\\Translation\\": "" },
37+
"exclude-from-classmap": [
38+
"/Tests/"
39+
]
3740
},
3841
"minimum-stability": "dev",
3942
"extra": {

0 commit comments

Comments
 (0)