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 99 */
1010namespace PHPUnit \Runner \ResultCache ;
1111
12+ use PHPUnit \Event \Code \Phpt ;
1213use PHPUnit \Event \Code \TestDox ;
1314use PHPUnit \Event \Code \TestMethod ;
1415use PHPUnit \Event \TestData \TestDataCollection ;
@@ -44,6 +45,14 @@ public function testReorderableResultCacheId(): void
4445 $ this ->assertSame ('PHPUnit\Runner\ResultCache\ResultCacheIdTest::testReorderableResultCacheId ' , ResultCacheId::fromReorderable ($ reorderable )->asString ());
4546 }
4647
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+
4756 private static function testMethod (): TestMethod
4857 {
4958 return new TestMethod (
You can’t perform that action at this time.
0 commit comments