本文整理汇总了PHP中PHPUnit_Framework_TestCase::assertNotEquals方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_TestCase::assertNotEquals方法的具体用法?PHP PHPUnit_Framework_TestCase::assertNotEquals怎么用?PHP PHPUnit_Framework_TestCase::assertNotEquals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Framework_TestCase
的用法示例。
在下文中一共展示了PHPUnit_Framework_TestCase::assertNotEquals方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isnt
/**
* 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);
}
示例2: iWantAnEncryptedStringBack
/**
* @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;
}
示例3: assert
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);
}
示例4: assertNotEqual
/**
* @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);
}
示例5: iShouldNotSeeTextInTheElement
/**
* @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');
}