Created
October 16, 2011 15:27
-
-
Save cs278/1291033 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
if ($a == true && $b == false && $a == $b) | |
{ | |
echo "Winning!\n"; | |
} | |
*/ | |
class TrueEqualsFalseTest extends PHPUnit_Framework_TestCase | |
{ | |
public $a; | |
public $b; | |
public function setUp() | |
{ | |
// $this->a = ; | |
// $this->b = ; | |
} | |
public function testAEqualsB() | |
{ | |
$this->assertTrue($this->a == $this->b); | |
} | |
public function testAEqualsTrue() | |
{ | |
$this->assertTrue($this->a == true); | |
} | |
public function testBEqualsFalse() | |
{ | |
$this->assertTrue($this->b == false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment