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.quiet_eval = 0
8assert.callback = f1
9--FILE--
10<?php
11// Check the initial settings for all assert_options
12
13//Using assert_options;
14echo "Initial values: assert_options(ASSERT_ACTIVE) => [".assert_options(ASSERT_ACTIVE)."]\n";
15echo "Initial values: assert_options(ASSERT_WARNING) => [".assert_options(ASSERT_WARNING)."]\n";
16echo "Initial values: assert_options(ASSERT_BAIL) => [".assert_options(ASSERT_BAIL)."]\n";
17echo "Initial values: assert_options(ASSERT_QUIET_EVAL) => [".assert_options(ASSERT_QUIET_EVAL)."]\n";
18echo "Initial values: assert_options(ASSERT_CALLBACK) => [".assert_options(ASSERT_CALLBACK)."]\n";
19
20//Using ini.get;
21echo "Initial values: ini.get(\"assert.active\") => [".ini_get("assert.active")."]\n";
22echo "Initial values: ini.get(\"assert.warning\") => [".ini_get("assert.warning")."]\n";
23echo "Initial values: ini.get(\"assert.bail\") => [".ini_get("assert.bail")."]\n";
24echo "Initial values: ini.get(\"assert.quiet_eval\") => [".ini_get("assert.quiet_eval")."]\n";
25echo "Initial values: ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
26--EXPECT--
27Initial values: assert_options(ASSERT_ACTIVE) => [0]
28Initial values: assert_options(ASSERT_WARNING) => [0]
29Initial values: assert_options(ASSERT_BAIL) => [0]
30Initial values: assert_options(ASSERT_QUIET_EVAL) => [0]
31Initial values: assert_options(ASSERT_CALLBACK) => [f1]
32Initial values: ini.get("assert.active") => [0]
33Initial values: ini.get("assert.warning") => [0]
34Initial values: ini.get("assert.bail") => [0]
35Initial values: ini.get("assert.quiet_eval") => [0]
36Initial values: ini.get("assert.callback") => [f1]
37