assertXmlFileNotEqualsXmlFile() public static méthode

Asserts that two XML files are not equal.
public static assertXmlFileNotEqualsXmlFile ( string $expectedFile, string $actualFile, string $message = '' )
$expectedFile string
$actualFile string
$message string
Exemple #1
0
/**
 * Asserts that two XML files are not equal.
 *
 * @param  string $expectedFile
 * @param  string $actualFile
 * @param  string $message
 * @since  Method available since Release 3.1.0
 */
function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = '')
{
    return PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message);
}
Exemple #2
0
 /**
  * Asserts that two vfs XML files are not equal.
  *
  * @param $expectedFile
  * @param $actualFile
  * @param string $message
  */
 public function assertVfsXmlFileNotEqualsVfsXmlFile($expectedFile, $actualFile, $message = '')
 {
     PHPUnit::assertXmlFileNotEqualsXmlFile($this->getPath($expectedFile), $this->getPath($actualFile), $message);
 }
Exemple #3
0
 /**
  * Expect that two XML files or documents are not equal.
  *
  * @param string $expectedFile
  * @param string $message
  *
  * @return Expect
  */
 public function notToEqualXmlFile($expectedFile, $message = '')
 {
     if (file_exists($this->value)) {
         // file
         Assert::assertXmlFileNotEqualsXmlFile($expectedFile, $this->value, $message);
     } else {
         // string
         Assert::assertXmlStringNotEqualsXmlFile($expectedFile, $this->value, $message);
     }
     return $this;
 }
Exemple #4
0
 public function isNotEqualToXmlFile($file)
 {
     Assert::assertXmlFileNotEqualsXmlFile($file, $this->actual, $this->description);
     return $this;
 }