1--TEST-- 2misc assert() tests tests 3--INI-- 4assert.active = 1 5assert.warning = 1 6assert.callback = 7assert.bail = 0 8assert.exception=0 9--FILE-- 10<?php 11/* Assert not active */ 12assert_options(ASSERT_ACTIVE, 0); 13assert(1); 14 15/* Wrong parameter count in assert */ 16assert_options(ASSERT_ACTIVE, 1); 17 18/* Assert false */ 19assert(0); 20 21 22/* Assert false and bail*/ 23assert_options(ASSERT_BAIL, 1); 24assert(0); 25 26echo "not reached\n"; 27 28?> 29--EXPECTF-- 30Warning: assert(): assert(0) failed in %s on line %d 31 32Warning: assert(): assert(0) failed in %s on line %d 33