~ubuntu-branches/ubuntu/quantal/php5/quantal

« back to all changes in this revision

Viewing changes to tests/output/ob_get_level_basic_001.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Sean Finney
  • Date: 2009-07-01 09:12:10 UTC
  • mto: (0.9.1) (1.1.17 upstream)
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: james.westby@ubuntu.com-20090701091210-go0h6506p62on17r
Tags: upstream-5.3.0
ImportĀ upstreamĀ versionĀ 5.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Test ob_get_level() function : basic functionality 
 
3
--FILE--
 
4
<?php
 
5
/* Prototype  : proto int ob_get_level(void)
 
6
 * Description: Return the nesting level of the output buffer 
 
7
 * Source code: main/output.c
 
8
 * Alias to functions: 
 
9
 */
 
10
 
 
11
echo "*** Testing ob_get_level() : basic functionality ***\n";
 
12
 
 
13
// Zero arguments
 
14
echo "\n-- Testing ob_get_level() function with Zero arguments --\n";
 
15
var_dump(ob_get_level());
 
16
 
 
17
ob_start();
 
18
var_dump(ob_get_level());
 
19
 
 
20
ob_start();
 
21
var_dump(ob_get_level());
 
22
 
 
23
ob_end_flush();
 
24
var_dump(ob_get_level());
 
25
 
 
26
ob_end_flush();
 
27
var_dump(ob_get_level());
 
28
 
 
29
ob_end_flush();
 
30
var_dump(ob_get_level());
 
31
 
 
32
 
 
33
echo "Done";
 
34
?>
 
35
--EXPECTF--
 
36
*** Testing ob_get_level() : basic functionality ***
 
37
 
 
38
-- Testing ob_get_level() function with Zero arguments --
 
39
int(0)
 
40
int(1)
 
41
int(2)
 
42
int(1)
 
43
int(0)
 
44
 
 
45
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in %s on line 26
 
46
int(0)
 
47
Done
 
 
b'\\ No newline at end of file'