<?PHP

include("class.krumo.php");

$fp = fopen(__FILE__,"r");

$a = array(
	'first'     => $fp,
	'last'      => new bar,
	'null_var'  => NULL,
	'float'     => pi(),
	'bool'      => true,
	'phones'    => array(5036541278,8714077831,'x253'),
	'long_str'  => "This is a really long string full of a\n bunch of crap that should eventually wrap. There once was a man from New Mexico...",
	'empty_arr' => array(),
	'func_str'  => 'preg_replace',
	'address'   => array('street' => '123 Fake Street', 'city' => 'Portland', 'state' => 'Maine'),
);

print "<h2>krumo capture</h2>\n";
$str = k(array('foo' => 'bar'),KRUMO_CAPTURE);
print $str;

print "<h2>krumo</h2>\n";
k(array('likes','kittens','and','dogs'));

print "<h2>krumo passing multiple args</h2>\n";
k('likes','kittens','and','dogs');

print "<h2>krumo + die()</h2>\n";
kd($a);
print "If you see this something is broken";

$k = new krumo;

class bar {
		public $b = 'bb';
		public $a = 'aa';

		function foo() {
			return 'bar';
		}
}

?>

Add a simple test suite
Add a simple test suite
