From 9ce0c9a4834a1bee9630f01419bacbc0914bf6ac Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 5 Jul 2012 12:14:56 +0200 Subject: [PATCH] Relative include path for RailsYAML PHPUnit tests Avoids problems when PHPUnit includes this test through autodiscovery. This is the case when running PHPUnit with a specific path argument, which overrules phpunit.xml.dist (e.g. "phpunit sapphire/"). --- .../tests/Translate/Adapter/RailsYAMLTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/zend_translate_railsyaml/tests/Translate/Adapter/RailsYAMLTest.php b/thirdparty/zend_translate_railsyaml/tests/Translate/Adapter/RailsYAMLTest.php index 52d0bddd5..b3c602bbd 100644 --- a/thirdparty/zend_translate_railsyaml/tests/Translate/Adapter/RailsYAMLTest.php +++ b/thirdparty/zend_translate_railsyaml/tests/Translate/Adapter/RailsYAMLTest.php @@ -6,7 +6,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) { /** * Translate_Adapter_RailsYAML */ -require_once 'Translate/Adapter/RailsYAML.php'; +require_once dirname(__FILE__) . '/../../../library/Translate/Adapter/RailsYAML.php'; /** * @category Zend