1--TEST--
2Test var_export() function with valid boolean values
3--FILE--
4<?php
5
6echo "*** Testing var_export() with valid boolean values ***\n";
7// different valid  boolean values
8$valid_bool = array(
9            "1" => 1,
10            "TRUE" => TRUE,
11            "true" => true,
12            "0" => 0,
13            "FALSE" => FALSE,
14            "false" => false
15);
16
17/* Loop to check for above boolean values with var_export() */
18echo "\n*** Output for boolean values ***\n";
19foreach($valid_bool as $key => $bool_value) {
20    echo "\n-- Iteration: $key --\n";
21    var_export( $bool_value );
22    echo "\n";
23    var_export( $bool_value, FALSE);
24    echo "\n";
25    var_dump( var_export( $bool_value, TRUE) );
26    echo "\n";
27}
28?>
29--EXPECT--
30*** Testing var_export() with valid boolean values ***
31
32*** Output for boolean values ***
33
34-- Iteration: 1 --
351
361
37string(1) "1"
38
39
40-- Iteration: TRUE --
41true
42true
43string(4) "true"
44
45
46-- Iteration: true --
47true
48true
49string(4) "true"
50
51
52-- Iteration: 0 --
530
540
55string(1) "0"
56
57
58-- Iteration: FALSE --
59false
60false
61string(5) "false"
62
63
64-- Iteration: false --
65false
66false
67string(5) "false"
68
69