php-src/tests/output/ob_get_clean_basic_001.phpt
Stanislav Malyshev f863d486d1 fix test
2011-12-26 05:08:09 +00:00

19 lines
321 B
PHP

--TEST--
Test return type and value, as well as basic behaviour, of ob_get_clean()
--FILE--
<?php
/*
* proto bool ob_get_clean(void)
* Function is implemented in main/output.c
*/
var_dump(ob_get_clean());
ob_start();
echo "Hello World";
var_dump(ob_get_clean());
?>
--EXPECTF--
bool(false)
string(11) "Hello World"