~ubuntu-branches/ubuntu/saucy/php-codesniffer/saucy

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.3.4/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.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
 
 
3
if ($something) echo 'hello';
 
4
 
 
5
if ($something) {
 
6
    echo 'hello';
 
7
} else echo 'hi';
 
8
 
 
9
if ($something) {
 
10
    echo 'hello';
 
11
} else if ($else) echo 'hi';
 
12
 
 
13
foreach ($something as $thing) echo 'hello';
 
14
 
 
15
for ($i; $i > 0; $i--) echo 'hello';
 
16
 
 
17
while ($something) echo 'hello';
 
18
 
 
19
do {
 
20
    $i--;
 
21
} while ($something);
 
22
 
 
23
if(true)
 
24
  $someObject->{$name};
 
25
 
 
26
?>
 
 
b'\\ No newline at end of file'