Calling method()
on a test stub created using createStubForIntersectionOfInterfaces()
throws an unexpected exception
#5818
Labels
feature/test-doubles
Test Stubs and Mock Objects
type/bug
Something is broken
version/10
Something affects PHPUnit 10
Summary
Calling the
method()
method on aStub
created through theTestCase::createStubForIntersectionOfInterfaces()
method throws an unexpected exception.Current behavior
When calling the
m̀ethod()
method on aStub
created through theTestCase::createStubForIntersectionOfInterfaces()
method, an exception is thrown:Error: Call to undefined method TestStub_Intersection_AInterface_f00d4e13_af77f05e::expects()
.How to reproduce
Expected behavior
Calling
method()
on aStub
should not throw an exception.The text was updated successfully, but these errors were encountered: