Skip to content

Commit 8025feb

Browse files
committed
Better display of test name
1 parent a9d589a commit 8025feb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Mf2/MicroformatsTestSuiteTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ public function htmlAndJsonProvider()
5353
$tests = array();
5454
foreach ($finder as $key => $value) {
5555
$dir = realpath(pathinfo($key, PATHINFO_DIRNAME));
56+
$testname = substr($dir, strpos($dir, '/mf2/tests/tests/') + 17) . '/' . pathinfo($key, PATHINFO_FILENAME);
5657
$test = pathinfo($key, PATHINFO_BASENAME);
5758
$result = pathinfo($key, PATHINFO_FILENAME) . '.json';
5859
if (is_file($dir . '/' . $result)) {
59-
$tests[pathinfo($key, PATHINFO_FILENAME)] = array(
60+
$tests[$testname] = array(
6061
'input' => file_get_contents($dir . '/' . $test),
6162
'expectedOutput' => file_get_contents($dir . '/' . $result)
6263
);

0 commit comments

Comments
 (0)