Skip to content

Commit 044468b

Browse files
Also test reverse lookup
1 parent dabbb4f commit 044468b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/tests/Target/MapperTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@ public function testIssue1066(): void
304304
Target::forMethod(DummyWithTrait::class, 'method1'),
305305
),
306306
);
307+
308+
$this->assertSame(
309+
DummyWithTrait::class . '::method1',
310+
$mapper->lookup($dummyWithTrait, 10),
311+
);
307312
}
308313

309314
/**

0 commit comments

Comments
 (0)