Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit b98e9bf

Browse files
committed
fixed interfaces
1 parent 2a20c0f commit b98e9bf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Init
99
*/
1010
public static function init()
1111
{
12-
require_once __DIR__ . DIRECTORY_SEPARATOR . 'shim.php';
1312
require_once __DIR__ . DIRECTORY_SEPARATOR . 'phpunit7-interfaces.php';
13+
require_once __DIR__ . DIRECTORY_SEPARATOR . 'shim.php';
1414
}
1515
}

src/phpunit7-interfaces.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ interface Test {
88
public function run(TestResult $result = null);
99
}
1010

11-
interface SelfDescribing {
11+
}
12+
if (!interface_exists(SelfDescribing::class, false)) {
13+
interface SelfDescribing
14+
{
1215
public function toString();
1316
}
14-
1517
}
1618

1719
}

0 commit comments

Comments
 (0)