Created
August 18, 2014 07:47
-
-
Save bobagold/5424a4abb083dffa04e3 to your computer and use it in GitHub Desktop.
PHPUnit makes me crazy
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 PHPUnitTest extends \PHPUnit_Framework_TestCase | |
{ | |
/** | |
* output of this test would be | |
* <cite> | |
* Failed asserting that 'cat does not have black fur' does not contain "cat does not have black fur". | |
* </cite> | |
* this is due to bad usage of PHPUnit_Framework_Constraint_Not::negate() | |
*/ | |
public function testNotContains() | |
{ | |
$this->assertNotContains('cat has black fur', 'cat has black fur'); | |
$this->assertNotContains('basket is empty', 'aaaaa basket is empty bbbbbbbb', 'yes we did it'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you please open a ticket for this? Thanks!