From: Edgar R. Sandi Date: Tue, 7 Jul 2015 13:46:20 +0000 (-0300) Subject: Added php tests to improve extension coverage X-Git-Tag: php-7.1.1RC1~35^2~12^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18dfbf90089409aedd36901933714241b22ddc2d;p=php Added php tests to improve extension coverage --- diff --git a/ext/shmop/tests/002.phpt b/ext/shmop/tests/002.phpt new file mode 100644 index 0000000000..3ca0a0b45a --- /dev/null +++ b/ext/shmop/tests/002.phpt @@ -0,0 +1,116 @@ +--TEST-- +shmop extension error messages +--CREDITS-- +edgarsandi - +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +## shmop_open function tests ## +Warning: shmop_open() expects exactly 4 parameters, 0 given in %s on line %d +NULL + +Warning: shmop_open(): is not a valid flag in %s on line %d +bool(false) + +Warning: shmop_open(): invalid access mode in %s on line %d +bool(false) + +Warning: shmop_open(): unable to attach or create shared memory segment 'Invalid argument' in %s on line %d +bool(false) + +Warning: shmop_open(): Shared memory segment size must be greater than zero in %s on line %d +bool(false) + +Warning: shmop_open(): unable to get shared memory segment information 'Permission denied' in %s on line %d +bool(false) + +## shmop_read function tests ## +Warning: shmop_read() expects exactly 3 parameters, 0 given in %s on line %d +NULL + +Warning: shmop_read(): start is out of range in %s on line %d +bool(false) + +Warning: shmop_read(): count is out of range in %s on line %d +bool(false) + +## shmop_write function tests ## +Warning: shmop_write() expects exactly 3 parameters, 0 given in %s on line %d +NULL + +Warning: shmop_write(): offset out of range in %s on line %d +bool(false) + +## shmop_size function tests ## +Warning: shmop_size() expects exactly 1 parameter, 0 given in %s on line %d +NULL + +## shmop_delete function tests ## +Warning: shmop_delete() expects exactly 1 parameter, 0 given in %s on line %d +NULL + +## shmop_close function tests ## +Warning: shmop_close() expects exactly 1 parameter, 0 given in %s on line %d +NULL