public function notEquals($expected) { if (!$this->isFileExpectation) { a::assertNotEquals($expected, $this->actual, $this->description); } else { a::assertFileNotEquals($expected, $this->actual, $this->description); } }
/** * 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); }
/** * 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); }
/** * 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; }
public function isNotEqualTo($file) { Assert::assertFileNotEquals($file, $this->actual, $this->description); return $this; }