assertNotEquals() public method

public assertNotEquals ( $a, $b )
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * @Then I want an encrypted string back
  */
 public function iWantAnEncryptedStringBack()
 {
     $dynamicEncrypter = DynamicCryptoFactory::buildDynamicEncrypter($this->passPhrase);
     $this->encryptedString = $dynamicEncrypter->encrypt($this->string);
     PHPUnit_Framework_TestCase::assertNotEquals($this->encryptedString, $this->string);
     echo $this->encryptedString;
 }
Exemplo n.º 3
0
 public function assert()
 {
     $title = $this->webDriver->getTitle();
     \PHPUnit_Framework_TestCase::assertNotNull($title);
     \PHPUnit_Framework_TestCase::assertNotNull($this->title);
     $title = trim($title);
     \PHPUnit_Framework_TestCase::assertNotEquals($title, $this->title);
 }
Exemplo n.º 4
0
 /**
  * @deprecated since 2.3
  * @static
  * @param mixed $expected
  * @param mixed $actual
  * @param string $message
  * @return void
  */
 public static function assertNotEqual($expected, $actual, $message = '')
 {
     parent::assertNotEquals($expected, $actual, $message);
 }
 /**
  * @Then I should not see :arg1 text matching in the :arg2 element
  * @Then I should not see :arg1 text in the :arg2 element
  */
 public function iShouldNotSeeTextInTheElement($text, $locator)
 {
     PHPUnit_Framework_TestCase::assertNotEquals($text, $this->getTextByXpath($locator), 'can see ' . $text . ' in the ' . $locator . ' element');
 }