public function testPipeThrowsExceptionForInvalidHandler($handler) { $this->setExpectedException('InvalidArgumentException'); $this->middleware->pipe('/foo', $handler); }