spec\Spatie\Browsershot\BrowsershotSpec::it_should_fail_if_target_file_not_is_image PHP Метод

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

    public function it_should_fail_if_target_file_not_is_image()
    {
        $this->setURL($this->getTestURL())->shouldThrow(new \Exception('targetfile extension not valid'))->during('save', [$this->getTestPath() . 'txt']);
    }