Skip to content

Commit 612de51

Browse files
committed
better ppmload_buffer test
1 parent f78b176 commit 612de51

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/ConfigTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testPpmLoadBuffer()
4343
0 0 0
4444
";
4545

46-
if (Vips\Utils::typeFromName("VipsForeignLoadPpm") != 0) {
46+
if (Vips\Utils::typeFromName("VipsForeignLoadPpmBuffer") != 0) {
4747
// the PPM loader is built in and should be available in most
4848
// libvips binaries
4949
$image = Vips\Image::ppmload_buffer($ppm);
@@ -60,7 +60,7 @@ public function testBlockUntrusted()
6060
";
6161

6262
if (Vips\FFI::atLeast(8, 13) &&
63-
Vips\Utils::typeFromName("VipsForeignLoadPpm") != 0) {
63+
Vips\Utils::typeFromName("VipsForeignLoadPpmBuffer") != 0) {
6464
Vips\Config::setBlockUntrusted(true);
6565

6666
// should fail
@@ -79,7 +79,7 @@ public function testBlock()
7979
";
8080

8181
if (Vips\FFI::atLeast(8, 13) &&
82-
Vips\Utils::typeFromName("VipsForeignLoadPpm") != 0) {
82+
Vips\Utils::typeFromName("VipsForeignLoadPpmBuffer") != 0) {
8383
Vips\Config::setBlockUntrusted(true);
8484
Vips\Config::setBlock("VipsForeignLoadPpm", false);
8585

0 commit comments

Comments
 (0)