本文整理汇总了PHP中PHPUnit_Framework_Assert::assertFileNotEquals方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_Assert::assertFileNotEquals方法的具体用法?PHP PHPUnit_Framework_Assert::assertFileNotEquals怎么用?PHP PHPUnit_Framework_Assert::assertFileNotEquals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Framework_Assert
的用法示例。
在下文中一共展示了PHPUnit_Framework_Assert::assertFileNotEquals方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: notEquals
public function notEquals($expected)
{
if (!$this->isFileExpectation) {
a::assertNotEquals($expected, $this->actual, $this->description);
} else {
a::assertFileNotEquals($expected, $this->actual, $this->description);
}
}
示例2: assertFileNotEquals
/**
* Asserts that the contents of one file is not equal to the contents of
* another file.
*
* @param string $expected
* @param string $actual
* @param string $message
* @param boolean $canonicalize
* @param boolean $ignoreCase
* @since Method available since Release 3.2.14
*/
function assertFileNotEquals($expected, $actual, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE)
{
return PHPUnit_Framework_Assert::assertFileNotEquals($expected, $actual, $message, $canonicalize, $ignoreCase);
}
示例3: assertVfsFileNotEquals
/**
* Asserts that the contents of one vfs file is not equal to the contents of
* another vfs file.
*
* @param $expected
* @param $actual
* @param string $message
* @param bool|false $canonicalize
* @param bool|false $ignoreCase
*/
public function assertVfsFileNotEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false)
{
PHPUnit::assertFileNotEquals($this->getPath($expected), $this->getPath($actual), $message, $canonicalize, $ignoreCase);
}
示例4: notToEqualFile
/**
* Expect that the contents of one file or a string is not equal to the contents of another file.
*
* @param string $expected
* @param string $message
* @param bool $canonicalize
* @param bool $ignoreCase
*
* @return Expect
*/
public function notToEqualFile($expected, $message = '', $canonicalize = false, $ignoreCase = false)
{
if (file_exists($this->value)) {
// file
Assert::assertFileNotEquals($expected, $this->value, $message, $canonicalize, $ignoreCase);
} else {
// string
Assert::assertStringNotEqualsFile($expected, $this->value, $message, $canonicalize, $ignoreCase);
}
return $this;
}
示例5: isNotEqualTo
public function isNotEqualTo($file)
{
Assert::assertFileNotEquals($file, $this->actual, $this->description);
return $this;
}