Skip to content

Commit f28bf78

Browse files
mbniebergallpetk
authored andcommitted
Added test for non existent file for iptcembed
1 parent eaddc9f commit f28bf78

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
iptcembed() unable to open file
3+
--CREDITS--
4+
Mark Niebergall <mbniebergall@gmail.com>
5+
PHP TestFest 2017 - UPHPU
6+
--FILE--
7+
<?php
8+
var_dump(iptcembed(-1, __DIR__ . '/iptcembed/DOES_NOT_EXIST.ERR', -1));
9+
?>
10+
--EXPECTF--
11+
Warning: iptcembed(): Unable to open %s in %s on line %d
12+
bool(false)

0 commit comments

Comments
 (0)