1--TEST-- 2assert() - basic - test initial values using ini.get and assert_options 3--INI-- 4assert.active = 0 5assert.warning = 0 6assert.bail = 0 7assert.callback = f1 8--FILE-- 9<?php 10// Check the initial settings for all assert_options 11 12//Using assert_options; 13echo "Initial values: assert_options(ASSERT_ACTIVE) => [".assert_options(ASSERT_ACTIVE)."]\n"; 14echo "Initial values: assert_options(ASSERT_WARNING) => [".assert_options(ASSERT_WARNING)."]\n"; 15echo "Initial values: assert_options(ASSERT_BAIL) => [".assert_options(ASSERT_BAIL)."]\n"; 16echo "Initial values: assert_options(ASSERT_CALLBACK) => [".assert_options(ASSERT_CALLBACK)."]\n"; 17 18//Using ini.get; 19echo "Initial values: ini.get(\"assert.active\") => [".ini_get("assert.active")."]\n"; 20echo "Initial values: ini.get(\"assert.warning\") => [".ini_get("assert.warning")."]\n"; 21echo "Initial values: ini.get(\"assert.bail\") => [".ini_get("assert.bail")."]\n"; 22echo "Initial values: ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n"; 23?> 24--EXPECTF-- 25Deprecated: PHP Startup: assert.active INI setting is deprecated in Unknown on line 0 26 27Deprecated: PHP Startup: assert.warning INI setting is deprecated in Unknown on line 0 28 29Deprecated: PHP Startup: assert.callback INI setting is deprecated in Unknown on line 0 30 31Deprecated: Constant ASSERT_ACTIVE is deprecated in %s on line %d 32 33Deprecated: Function assert_options() is deprecated in %s on line %d 34Initial values: assert_options(ASSERT_ACTIVE) => [0] 35 36Deprecated: Constant ASSERT_WARNING is deprecated in %s on line %d 37 38Deprecated: Function assert_options() is deprecated in %s on line %d 39Initial values: assert_options(ASSERT_WARNING) => [0] 40 41Deprecated: Constant ASSERT_BAIL is deprecated in %s on line %d 42 43Deprecated: Function assert_options() is deprecated in %s on line %d 44Initial values: assert_options(ASSERT_BAIL) => [0] 45 46Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d 47 48Deprecated: Function assert_options() is deprecated in %s on line %d 49Initial values: assert_options(ASSERT_CALLBACK) => [f1] 50Initial values: ini.get("assert.active") => [0] 51Initial values: ini.get("assert.warning") => [0] 52Initial values: ini.get("assert.bail") => [0] 53Initial values: ini.get("assert.callback") => [f1] 54