Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 1472.phpt
diff --git a/vendor/phpunit/phpunit/tests/Regression/GitHub/1472.phpt b/vendor/phpunit/phpunit/tests/Regression/GitHub/1472.phpt
new file mode 100644 (file)
index 0000000..0958eb3
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+GH-1472: assertEqualXMLStructure modifies the tested elements
+--SKIPIF--
+<?php
+// See: https://github.com/facebook/hhvm/issues/4669
+if (defined('HHVM_VERSION')) {
+    print 'skip: HHVM does not support cloning DOM nodes';
+}
+?>
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = 'Issue1472Test';
+$_SERVER['argv'][3] = dirname(__FILE__) . '/1472/Issue1472Test.php';
+
+require __DIR__ . '/../../bootstrap.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann and contributors.
+
+.
+
+Time: %s, Memory: %s
+
+OK (1 test, 4 assertions)