public function testWriteToWrongFolder() { $file = '/non-existant-folder/file.php'; $code = Code::fromString('$a = 10; return $a;'); $code->writeTo($file); }