KamranAhmed\Smasher\ScannerTest::testCanScanPathAndCreateValidResponseFile PHP Method

testCanScanPathAndCreateValidResponseFile() public method

    public function testCanScanPathAndCreateValidResponseFile()
    {
        $scanner = new Scanner(new JsonResponse());
        $scanner->scan($this->sampleDirPath, $this->outputJsonPath);
        $this->assertTrue(file_exists($this->outputJsonPath));
        $result = file_get_contents($this->outputJsonPath);
        $this->assertTrue($this->isValidJson($result));
    }