Commit 7cf2db21 authored by Simon Welsh's avatar Simon Welsh

Use printf format for invariant message

Fixes #17
parent 31d1d207
Pipeline #168 passed with stages
in 1 minute and 31 seconds
......@@ -12,7 +12,7 @@ abstract class HHITest extends \PHPUnit_Framework_TestCase {
$head,
'File for test '.$testName.' has invalid start',
);
invariant(count($parts) % 2 == 0, 'Invalid file for test: '.$file);
invariant(count($parts) % 2 == 0, 'Invalid file for test: %s', $file);
$mapping = Map {};
for ($i = 0; $i < count($parts); $i += 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment