We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee1c88f commit 74b6bc7Copy full SHA for 74b6bc7
1 file changed
tests/widgets_test/ImageTest.php
@@ -51,12 +51,12 @@
51
52
// The transcoded temp PNG should exist on disk while the widget lives,
53
// and disappear when destroy() is called.
54
- $tempsBefore = glob(sys_get_temp_dir() . '/phpgui_img_*.png') ?: [];
+ $tempsBefore = glob(sys_get_temp_dir() . '/phpgui_img_*') ?: [];
55
TestRunner::assert(count($tempsBefore) >= 1, 'GD transcode produced a temp PNG on disk');
56
57
$jpgImage->destroy();
58
TestRunner::assertWidgetGone($jpgPathOut, 'JPG image label gone after destroy()');
59
- $tempsAfter = glob(sys_get_temp_dir() . '/phpgui_img_*.png') ?: [];
+ $tempsAfter = glob(sys_get_temp_dir() . '/phpgui_img_*') ?: [];
60
TestRunner::assert(count($tempsAfter) < count($tempsBefore), 'destroy() unlinks the transcoded temp PNG');
61
}
62
0 commit comments