Skip to content

Commit b7f4b0f

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 524bc2e + b050758 commit b7f4b0f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Tests/Util/XmlUtilsTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ public function testLoadFile()
6363

6464
public function testLoadFileWithInternalErrorsEnabled()
6565
{
66-
libxml_use_internal_errors(true);
66+
$internalErrors = libxml_use_internal_errors(true);
6767

6868
$this->assertSame(array(), libxml_get_errors());
6969
$this->assertInstanceOf('DOMDocument', XmlUtils::loadFile(__DIR__.'/../Fixtures/Util/invalid_schema.xml'));
7070
$this->assertSame(array(), libxml_get_errors());
71+
72+
libxml_clear_errors();
73+
libxml_use_internal_errors($internalErrors);
7174
}
7275

7376
/**
@@ -147,7 +150,7 @@ public function getDataForPhpize()
147150
public function testLoadEmptyXmlFile()
148151
{
149152
$file = __DIR__.'/../Fixtures/foo.xml';
150-
$this->setExpectedException('InvalidArgumentException', 'File '.$file.' does not contain valid XML, it is empty.');
153+
$this->setExpectedException('InvalidArgumentException', sprintf('File %s does not contain valid XML, it is empty.', $file));
151154
XmlUtils::loadFile($file);
152155
}
153156

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"symfony/filesystem": "~2.3"
2121
},
2222
"autoload": {
23-
"psr-4": { "Symfony\\Component\\Config\\": "" }
23+
"psr-4": { "Symfony\\Component\\Config\\": "" },
24+
"exclude-from-classmap": [
25+
"/Tests/"
26+
]
2427
},
2528
"minimum-stability": "dev",
2629
"extra": {

0 commit comments

Comments
 (0)