Alltube\Test\VideoDownloadTest::testGetJSON PHP Method

testGetJSON() public method

Test getJSON function.
public testGetJSON ( string $url, string $format ) : void
$url string URL
$format string Format
return void
    public function testGetJSON($url, $format)
    {
        $info = $this->download->getJSON($url, $format);
        $this->assertObjectHasAttribute('webpage_url', $info);
        $this->assertObjectHasAttribute('url', $info);
        $this->assertObjectHasAttribute('ext', $info);
        $this->assertObjectHasAttribute('title', $info);
        $this->assertObjectHasAttribute('formats', $info);
        $this->assertObjectHasAttribute('_filename', $info);
    }