Skip to content

Commit

Permalink
Make it clear which tests are running
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm committed Mar 5, 2023
1 parent 00e1d49 commit dfe6fc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/JShrink/Test/JShrinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function testUnclosedRegexException()
*/
public function testJShrink($testName, $input, $output)
{
echo('Running JShrink Test: ' . $testName);
$this->assertEquals($output, \JShrink\Minifier::minify($input), 'Running JShrink Test: ' . $testName);
}

Expand Down Expand Up @@ -85,7 +86,7 @@ public function testRequests($testName, $input, $output)
* the output folder.
*
* @param $group string
* @return array
* @return string[][]
*/
public static function getTestFiles($group)
{
Expand All @@ -104,7 +105,7 @@ public static function getTestFiles($group)
$testInput = file_get_contents($testDir . $testFile);
$testOutput = file_get_contents($expectDir . $testFile);

$returnData[] = array($testFile, $testInput, $testOutput);
$returnData[$group . ":" . $testFile] = [$testFile, $testInput, $testOutput];
}

return $returnData;
Expand Down

0 comments on commit dfe6fc8

Please sign in to comment.