Skip to content

Commit c7238f1

Browse files
committed
Restore backwards compatibility
1 parent b9f6fa7 commit c7238f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/SAML2/DOMDocumentFactoryTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use SimpleSAML\XML\Exception\RuntimeException;
1212
use SimpleSAML\XML\Exception\UnparseableXMLException;
1313

14+
use function sprintf;
15+
1416
class DOMDocumentFactoryTest extends \PHPUnit\Framework\TestCase
1517
{
1618
/**
@@ -128,7 +130,7 @@ public function testEmptyFileIsNotValid() : void
128130
$this->expectException(RuntimeException::class, 'does not have content');
129131
$file = realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'domdocument_empty.xml';
130132
$this->expectException(RuntimeException::class);
131-
$this->expectExceptionMessage('File "/home/runner/work/saml2/saml2/tests/SAML2/domdocument_empty.xml" does not have content');
133+
$this->expectExceptionMessage(sprintf('File "%s" does not have content'));
132134
DOMDocumentFactory::fromFile($file);
133135
}
134136

0 commit comments

Comments
 (0)