We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e5ba9f commit 76f9595Copy full SHA for 76f9595
tests/PendingConveyorBeltCommand.php
@@ -2,6 +2,7 @@
2
3
namespace Glhd\ConveyorBelt\Tests;
4
5
+use Closure;
6
use Illuminate\Foundation\Application;
7
use Illuminate\Support\Traits\ForwardsCalls;
8
use Illuminate\Testing\PendingCommand;
@@ -68,7 +69,8 @@ public function throwingExceptions(bool $throw): self
68
69
{
70
if ($throw) {
71
$this->parameters['--throw'] = true;
- $this->test->expectException(RuntimeException::class);
72
+ // expectException is protected
73
+ (fn() => $this->expectException(RuntimeException::class))->call($this->test);
74
}
75
76
return $this;
0 commit comments