KamranAhmed\Smasher\ScannerTest::testCanGetScannedContentFromJsonFile PHP Method

testCanGetScannedContentFromJsonFile() public method

    public function testCanGetScannedContentFromJsonFile()
    {
        $scanner = new Scanner(new JsonResponse());
        $scannedArray = $this->callProtectedMethod($scanner, 'getScannedContent', [$this->sampleJson]);
        // Verifying that a valid array is returned by checking
        // Orchestrate a better way to verify this array.
        $this->assertTrue(isset($scannedArray['sample-path']['child-item']['grand-child']['child-file.md']));
    }