From 928b592c1433822ff8b7bf5312cf580ccf4ac61c Mon Sep 17 00:00:00 2001 From: Alexander Kurilo Date: Sun, 23 Oct 2016 21:16:36 +0300 Subject: [PATCH] Add readable labels for data provider samples --- tests/PhpSpreadsheetTests/Reader/XEEValidatorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/PhpSpreadsheetTests/Reader/XEEValidatorTest.php b/tests/PhpSpreadsheetTests/Reader/XEEValidatorTest.php index a1e67631..421f23ab 100644 --- a/tests/PhpSpreadsheetTests/Reader/XEEValidatorTest.php +++ b/tests/PhpSpreadsheetTests/Reader/XEEValidatorTest.php @@ -22,7 +22,7 @@ class XEEValidatorTest extends \PHPUnit_Framework_TestCase { $tests = []; foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestInvalid*.xml') as $file) { - $tests[] = [realpath($file)]; + $tests[basename($file)] = [realpath($file)]; } return $tests; @@ -42,7 +42,7 @@ class XEEValidatorTest extends \PHPUnit_Framework_TestCase { $tests = []; 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;