Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Jul 25, 2024
1 parent a2dfff3 commit c3021a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ public function testGuardedCallback()
{
ModelStub::unguard();
$mock = $this->getMockBuilder('stdClass')
->setMethods(['callback'])
->addMethods(['callback'])
->getMock();
$mock->expects($this->once())
->method('callback')
->will($this->returnValue('foo'));
->willReturn('foo');
$string = ModelStub::unguarded([$mock, 'callback']);
$this->assertEquals('foo', $string);
ModelStub::reguard();
Expand Down

0 comments on commit c3021a4

Please sign in to comment.