notSame() public static method

Assert that two values are not the same (using === ).
public static notSame ( mixed $value1, mixed $value2, string | null $message = null, string | null $propertyPath = null ) : boolean
$value1 mixed
$value2 mixed
$message string | null
$propertyPath string | null
return boolean
Exemplo n.º 1
0
 /**
  * @Then /^the command was not successful$/
  */
 public function theCommandWasNotSuccessful()
 {
     Assertion::notSame($this->tester->getStatusCode(), 0);
 }
Exemplo n.º 2
0
 public function testNotSame()
 {
     Assertion::notSame("1", 2);
     Assertion::notSame(new \stdClass(), array());
     $this->setExpectedException('Assert\\AssertionFailedException', null, Assertion::INVALID_NOT_SAME);
     Assertion::notSame(1, 1);
 }