Skip to content

Commit 4826629

Browse files
committed
fix assert
1 parent a8d331b commit 4826629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Unit/MockByCallsTraitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ public function testInterfacesWithCallAndReturnSelf()
148148
self::assertSame($mock, $mock->sample($argument1));
149149
self::assertSame($mock, $mock->additionalSample($argument2));
150150
} catch (\TypeError $typeError) {
151-
self::assertSame(
151+
self::assertStringStartsWith(
152152
'Argument 1 passed to PHPUnit\Framework\TestCase::getMockBuilder() must be of the type string'
153-
.', array given, called in /vagrant/chubbyphp-mock/src/MockByCallsTrait.php on line 67',
153+
.', array given',
154154
$typeError->getMessage()
155155
);
156156
}

0 commit comments

Comments
 (0)