CloudConvert\tests\ProcessTest::testIfProcessWithInputDownloadWorks PHP Метод

testIfProcessWithInputDownloadWorks() публичный Метод

Test if process with downloading an input file from an URL works
    public function testIfProcessWithInputDownloadWorks()
    {
        $process = $this->api->createProcess(['inputformat' => 'png', 'outputformat' => 'jpg']);
        $process->start(['input' => 'download', 'outputformat' => 'jpg', 'wait' => true, 'file' => 'https://cloudconvert.com/blog/wp-content/themes/cloudconvert/img/logo_96x60.png']);
        $this->assertEquals($process->step, 'finished');
        $this->assertEquals($process->output->ext, 'jpg');
        // cleanup
        $process->delete();
    }