class Program { void test_assert(mixed $param) { assert("is_bool($param);"); } public void main() { callback $assert_fail = void(string $file, int $line, string $code) { print("Assertion failed ...\n"); }; assert_options(ASSERT_ACTIVE, true); assert_options(ASSERT_BAIL, false); assert_options(ASSERT_WARNING, false); assert_options(ASSERT_CALLBACK, $assert_fail); $this->test_assert(true); $this->test_assert(1); } }