Add readable labels for data provider samples

This commit is contained in:
Alexander Kurilo 2016-10-23 21:16:36 +03:00 committed by Adrien Crivelli
parent 2809cce298
commit 928b592c14
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class XEEValidatorTest extends \PHPUnit_Framework_TestCase
{ {
$tests = []; $tests = [];
foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestInvalid*.xml') as $file) { foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestInvalid*.xml') as $file) {
$tests[] = [realpath($file)]; $tests[basename($file)] = [realpath($file)];
} }
return $tests; return $tests;
@ -42,7 +42,7 @@ class XEEValidatorTest extends \PHPUnit_Framework_TestCase
{ {
$tests = []; $tests = [];
foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestValid*.xml') as $file) { foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestValid*.xml') as $file) {
$tests[] = [realpath($file), file_get_contents($file)]; $tests[basename($file)] = [realpath($file), file_get_contents($file)];
} }
return $tests; return $tests;