public function transformMethodShouldFailIfNoModelIsFound() { // Arrange... $responseBuilder = $this->app->make('responder.success'); $this->expectException(InvalidArgumentException::class); // Act... $responseBuilder->transform('foo'); }