Created
February 5, 2013 22:01
-
-
Save saltlakeryan/4718141 to your computer and use it in GitHub Desktop.
diff patch to resolve issue with phpunit where the --tap flag causes exceptions to be thrown (Symfony/Component/Yaml/Inline.php and Symfony/Component/Yaml/Escaper.php not found) when a test does not pass. Apply to file: /usr/share/pear/PHPUnit/Util/Log/TAP.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /tmp/TAP.php 2013-02-05 22:46:41.117423627 +0100 | |
+++ /usr/share/pear/PHPUnit/Util/Log/TAP.php 2013-02-05 19:26:49.759078943 +0100 | |
@@ -48,6 +48,18 @@ | |
require_once 'Symfony/Component/Yaml/Dumper.php'; | |
} | |
+if (!class_exists('Symfony\\Component\\Yaml\\Inline') && | |
+ stream_resolve_include_path('Symfony/Component/Yaml/Inline.php')) { | |
+ require_once 'Symfony/Component/Yaml/Inline.php'; | |
+} | |
+ | |
+if (!class_exists('Symfony\\Component\\Yaml\\Escaper') && | |
+ stream_resolve_include_path('Symfony/Component/Yaml/Escaper.php')) { | |
+ require_once 'Symfony/Component/Yaml/Escaper.php'; | |
+} | |
+ | |
+ | |
+ | |
/** | |
* A TestListener that generates a logfile of the | |
* test execution using the Test Anything Protocol (TAP). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment