public function isNotEqualToJsonFile($file) { Assert::assertJsonStringNotEqualsJsonFile($file, $this->actual, $this->description); return $this; }
/** * Asserts that the generated JSON encoded object and the content of the given file are not equal. * * @param string $expectedFile * @param string $actualJson * @param string $message * @since Method available since Release 3.7.0 */ function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = '') { return PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = ''); }
/** * Expect that the generated JSON encoded object and the content of the given file or JSON string are not equal. * * @param string $expectedFile * @param string $message * * @return Expect */ public function notToEqualJsonFile($expectedFile, $message = '') { if (file_exists($this->value)) { // file Assert::assertJsonFileEqualsJsonFile($expectedFile, $this->value, $message); } else { // string Assert::assertJsonStringNotEqualsJsonFile($expectedFile, $this->value, $message); } return $this; }
/** * Asserts that the generated JSON encoded object and the content of the given vfs file are not equal. * * @param $expectedFile * @param $actualJson * @param string $message */ public function assertJsonStringNotEqualsVfsJsonFile($expectedFile, $actualJson, $message = '') { PHPUnit::assertJsonStringNotEqualsJsonFile($this->getPath($expectedFile), $actualJson, $message); }