NotEqualExpectation::test PHP Method

test() public method

Tests the expectation. True if it differs from the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
return boolean True if correct.
    public function test($compare)
    {
        return !parent::test($compare);
    }

Usage Example

 function testStringMismatch()
 {
     $not_hello = new NotEqualExpectation("Hello");
     $this->assertTrue($not_hello->test("Goodbye"));
     $this->assertFalse($not_hello->test("Hello"));
 }
All Usage Examples Of NotEqualExpectation::test