public function testThrowsExceptionTryingToScanInvalidPath() { $scanner = new Scanner(new JsonResponse()); $scanner->scan($this->invalidDirPath); }