public function testDispatchWithClosure() { $result = $this->strategy->dispatch(function () { return 42; }, []); $this->assertEquals(42, $result); }