File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
tests/unit/Runner/ResultCache Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
namespace PHPUnit \Runner \ResultCache ;
11
11
12
+ use PHPUnit \Event \Code \Phpt ;
12
13
use PHPUnit \Event \Code \TestDox ;
13
14
use PHPUnit \Event \Code \TestMethod ;
14
15
use PHPUnit \Event \TestData \TestDataCollection ;
@@ -44,6 +45,14 @@ public function testReorderableResultCacheId(): void
44
45
$ this ->assertSame ('PHPUnit\Runner\ResultCache\ResultCacheIdTest::testReorderableResultCacheId ' , ResultCacheId::fromReorderable ($ reorderable )->asString ());
45
46
}
46
47
48
+ public function testPhptResultCacheId (): void
49
+ {
50
+ $ file = 'test.phpt ' ;
51
+ $ phptTest = new Phpt ($ file );
52
+
53
+ $ this ->assertSame ('test.phpt ' , ResultCacheId::fromTest ($ phptTest )->asString ());
54
+ }
55
+
47
56
private static function testMethod (): TestMethod
48
57
{
49
58
return new TestMethod (
You can’t perform that action at this time.
0 commit comments