assertXmlFileEqualsXmlFile() public static method

Asserts that two XML files are equal.
public static assertXmlFileEqualsXmlFile ( string $expectedFile, string $actualFile, string $message = '' )
$expectedFile string
$actualFile string
$message string
Ejemplo n.º 1
0
/**
 * Asserts that two XML files are equal.
 *
 * @param  string $expectedFile
 * @param  string $actualFile
 * @param  string $message
 * @since  Method available since Release 3.1.0
 */
function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = '')
{
    return PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message);
}
Ejemplo n.º 2
0
 public function equalsXmlFile($file)
 {
     if (!$this->isFileExpectation) {
         a::assertXmlStringEqualsXmlFile($file, $this->actual, $this->description);
     } else {
         a::assertXmlFileEqualsXmlFile($file, $this->actual, $this->description);
     }
 }
Ejemplo n.º 3
0
 /**
  * Asserts that two vfs XML files are equal.
  *
  * @param $expectedFile
  * @param $actualFile
  * @param string $message
  */
 public function assertVfsXmlFileEqualsVfsXmlFile($expectedFile, $actualFile, $message = '')
 {
     PHPUnit::assertXmlFileEqualsXmlFile($this->getPath($expectedFile), $this->getPath($actualFile), $message);
 }
Ejemplo n.º 4
0
 /**
  * Expect that two XML files or documents are equal.
  *
  * @param string $expectedFile
  * @param string $message
  *
  * @return Expect
  */
 public function toEqualXmlFile($expectedFile, $message = '')
 {
     if (file_exists($this->value)) {
         // file
         Assert::assertXmlFileEqualsXmlFile($expectedFile, $this->value, $message);
     } else {
         // string
         Assert::assertXmlStringEqualsXmlFile($expectedFile, $this->value, $message);
     }
     return $this;
 }
Ejemplo n.º 5
0
 public function isEqualToXmlFile($file)
 {
     Assert::assertXmlFileEqualsXmlFile($file, $this->actual, $this->description);
     return $this;
 }