tmpfile
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Creates a temporary file
tmpfile
():
resource
|
false
$source
=
$this
->
getTestDecoder
(
$resource
);
$this
->
assertTrue
(
$source
->
isGdResource
());
$source
=
$this
->
getTestDecoder
(
tmpfile
());
$this
->
assertFalse
(
$source
->
isGdResource
());
$source
=
$this
->
getTestDecoder
(
null
);
tests/AbstractDecoderTest.php