File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1111use SimpleSAML \XML \Exception \RuntimeException ;
1212use SimpleSAML \XML \Exception \UnparseableXMLException ;
1313
14+ use function sprintf ;
15+
1416class 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
You can’t perform that action at this time.
0 commit comments