File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / output / ob_get_clean_basic_002.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 5 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Test basic behaviour of ob_get_clean()
--FILE--
<?php
/* 
 * proto bool ob_get_clean(void)
 * Function is implemented in main/output.c
*/ 

ob_start();

echo "Hello World";

$out = ob_get_clean();
$out = strtolower($out);

var_dump($out);
?>
--EXPECT--
string(11) "hello world"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>