Skip to content

Commit e942daa

Browse files
committed
Use willReturn() instead of will(returnValue()).
1 parent a088aaf commit e942daa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/ImmutableEventDispatcherTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testDispatchDelegates()
4343
$this->innerDispatcher->expects($this->once())
4444
->method('dispatch')
4545
->with('event', $event)
46-
->will($this->returnValue('result'));
46+
->willReturn('result');
4747

4848
$this->assertSame('result', $this->dispatcher->dispatch('event', $event));
4949
}
@@ -53,7 +53,7 @@ public function testGetListenersDelegates()
5353
$this->innerDispatcher->expects($this->once())
5454
->method('getListeners')
5555
->with('event')
56-
->will($this->returnValue('result'));
56+
->willReturn('result');
5757

5858
$this->assertSame('result', $this->dispatcher->getListeners('event'));
5959
}
@@ -63,7 +63,7 @@ public function testHasListenersDelegates()
6363
$this->innerDispatcher->expects($this->once())
6464
->method('hasListeners')
6565
->with('event')
66-
->will($this->returnValue('result'));
66+
->willReturn('result');
6767

6868
$this->assertSame('result', $this->dispatcher->hasListeners('event'));
6969
}

0 commit comments

Comments
 (0)