~ubuntu-branches/ubuntu/utopic/php-codesniffer/utopic-proposed

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.1.0/CodeSniffer/Standards/Squiz/Tests/Formatting/OutputBufferingIndentUnitTest.inc

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2012-05-31 16:37:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120531163724-u6aiaubu8ks5dh5z
Tags: 1.3.4-0.1
* Non-maintainer upload.
* New upstream release (Closes: #599617, #634825).
* Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the
upstream license changed).
* Switched package to pkg-php-tools and debhelper 8 sequencer.
* Now running unit tests at build time (so depends on phpunit (>= 3.6)).
* Section is now PHP.
* Added missing Build-Depends-Indep: php-pear.
* Added missing ${misc:Depends}.
* Added Vcs fields.
* Added homepage field.
* Reviewed short and long description.
* Added dependency on php-timer.
* Standards-Version: is now 3.9.3 (lots of changes, see above...).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
ob_start();
3
 
    // Do something here.
4
 
    $code = 'hello';
5
 
 
6
 
    $contents = ob_get_contents();
7
 
ob_end_clean();
8
 
 
9
 
ob_start();
10
 
// Do something here.
11
 
$code     = 'hello';
12
 
$contents = ob_get_contents();
13
 
ob_end_clean();
14
 
 
15
 
ob_start();
16
 
    // Do something here.
17
 
        $code     = 'hello';
18
 
        $contents = ob_get_contents();
19
 
ob_end_clean();
20
 
 
21
 
ob_start();
22
 
    // Do something here.
23
 
 
24
 
   $code = 'hello';
25
 
   // Hello.
26
 
    $contents = ob_get_contents();
27
 
    // Hi.
28
 
ob_end_clean();
29
 
 
30
 
function myFunc1()
31
 
{
32
 
    ob_start();
33
 
       echo 'hello';
34
 
       $content = ob_get_clean();
35
 
 
36
 
    if ($blah) {
37
 
        echo 'blah';
38
 
    }
39
 
}
40
 
 
41
 
function myFunc2()
42
 
{
43
 
    ob_start();
44
 
        echo 'hello';
45
 
        $content = ob_get_contents();
46
 
    ob_end_clean();
47
 
}
48
 
 
49
 
ob_start();
50
 
    ?><h2>Sign up for a new account</h2>
51
 
    <form action="<?php echo $submitTo; ?>" method="post">
52
 
    <?php
53
 
ob_end_clean();
54
 
 
55
 
ob_start();
56
 
    ?><h2>Sign up for a new account</h2>
57
 
<form action="<?php echo $submitTo; ?>" method="post">
58
 
   <?php
59
 
ob_end_clean();
60
 
 
61
 
ob_start();
62
 
    echo $hello;
63
 
?>