Skip to content

Commit e7be013

Browse files
committed
Fix tests
1 parent 17ef96e commit e7be013

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/WithoutOverlappingTraitTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ public function it_allows_to_run_command_if_there_is_no_other_running_instances(
100100
*/
101101
public function it_blocks_if_trying_to_run_another_instance_of_the_command()
102102
{
103-
$this->willSeeException(MutexRuntimeException::class, 'Command is running now!');
103+
$this->expectException(MutexRuntimeException::class);
104+
$this->expectExceptionMessage('Command is running now!');
104105

105106
$mutex = mock('overload:Illuminated\Console\Mutex');
106107
$mutex->expects('acquireLock')->with(0)->andReturn(false);

0 commit comments

Comments
 (0)