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

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.0.1/CodeSniffer/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.inc

  • Committer: Bazaar Package Importer
  • Author(s): Jack Bates
  • Date: 2008-10-01 17:39:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081001173943-2dy06n1e8zwyw1o8
Tags: 1.1.0-1
* New upstream release
* Acknowledge NMU, thanks Jan

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
if ($value === TRUE || $other === FALSE) {
3
 
}
4
 
 
5
 
if ($value === TRUE or $other === FALSE) {
6
 
}
7
 
 
8
 
if ($value === TRUE && $other === FALSE) {
9
 
}
10
 
 
11
 
if ($value === TRUE and $other === FALSE) {
12
 
}
13
 
 
14
 
if ($one === TRUE && ($two === TRUE || $three === TRUE)) {
15
 
}
16
 
 
17
 
if ($one === TRUE and ($two === TRUE or $three === TRUE)) {
18
 
}
19
 
 
20
 
if ($a ^ $b) {
21
 
}
22
 
 
23
 
if ($a xor $b) {
24
 
}
25
 
?>