Created
January 17, 2011 22:33
-
-
Save zacharydanger/783624 to your computer and use it in GitHub Desktop.
Why our config is jacked.
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 | |
class MyTestCase extends PHPUnit_Framework_TestCase { | |
public function testBoolEquality() { | |
$this->assertTrue((true == 'true')); | |
$this->assertTrue((true == (bool)'true')); | |
$this->assertTrue((true == 'false')); | |
$this->assertTrue((true == (bool)'false')); | |
$this->assertTrue((true == (bool)'1')); | |
$this->assertTrue((false == (bool)'0')); | |
$this->assertFalse((true == '')); | |
$this->assertTrue((false == (bool)'')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment