scan() public method

Scans the provided path and returns the encoded response. Also if resultPath is provided then the response will be stored in the resultPath
public scan ( $path, string $resultPath = '' ) : string
$path The path to scan
$resultPath string The path at which the resultant file will be created
return string
Beispiel #1
0
 /**
  * @expectedException \KamranAhmed\Smasher\Exceptions\UnreadablePathException
  */
 public function testThrowsExceptionTryingToScanInvalidPath()
 {
     $scanner = new Scanner(new JsonResponse());
     $scanner->scan($this->invalidDirPath);
 }