1--TEST--
2Test vsprintf() function : basic functionality - bool format
3--FILE--
4<?php
5echo "*** Testing vsprintf() : basic functionality - using bool format ***\n";
6
7// Initialise all required variables
8$format = "format";
9$format1 = "%b";
10$format2 = "%b %b";
11$format3 = "%b %b %b";
12$arg1 = array(TRUE);
13$arg2 = array(TRUE,FALSE);
14$arg3 = array(TRUE,FALSE,TRUE);
15
16var_dump( vsprintf($format1,$arg1) );
17var_dump( vsprintf($format2,$arg2) );
18var_dump( vsprintf($format3,$arg3) );
19
20echo "Done";
21?>
22--EXPECT--
23*** Testing vsprintf() : basic functionality - using bool format ***
24string(1) "1"
25string(3) "1 0"
26string(5) "1 0 1"
27Done
28