Skip to content

Commit 8ac029f

Browse files
committed
Use assertions
1 parent 923c97b commit 8ac029f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/StaticMethodMockTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testExtraExpectations(): void
3939
$mock->assertExpectationsMet();
4040
$this->fail('Expected AssertionFailedError was not thrown.');
4141
} catch (AssertionFailedError $e) {
42-
$this->assertEquals('StaticMethodMock not all expectations met for MintyPHP\Mocking\Tests\Math\Adder, 1 remaining', $e->getMessage());
42+
$this->assertEquals('Not all expectations met for MintyPHP\Mocking\Tests\Math\Adder, 1 remaining', $e->getMessage());
4343
}
4444
}
4545

@@ -56,7 +56,7 @@ public function testNotEnoughExpectations(): void
5656
Adder::add(1, 2);
5757
$this->fail('Expected AssertionFailedError was not thrown.');
5858
} catch (AssertionFailedError $e) {
59-
$this->assertEquals('StaticMethodMock no expectations left for MintyPHP\Mocking\Tests\Math\Adder::add', $e->getMessage());
59+
$this->assertEquals('No expectations left for MintyPHP\Mocking\Tests\Math\Adder::add', $e->getMessage());
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)