PHPUnit_Framework_TestCase::assertNotEquals PHP Method

assertNotEquals() public method

public assertNotEquals ( $a, $b )
    public function assertNotEquals($a, $b)
    {
        if ($a == $b) {
            throw new Exception('Equals ' . $a . '==' . $b);
        }
    }

Usage Example

 /**
  * Overwritten lime_test method
  *
  * @see lime_test#isnt()
  */
 public function isnt($exp1, $exp2, $message = '')
 {
     // lime:
     //   $exp1 - actual, $exp2 - expected
     // phpunit:
     //   assertNotEquals($expected, $actual)
     $this->testCase->assertNotEquals($exp2, $exp1, $message);
 }
All Usage Examples Of PHPUnit_Framework_TestCase::assertNotEquals