svn: /pear/packages/HTTP_Session2/trunk/tests/ test-session-doctrine.phpt

From: Date: Fri, 03 Sep 2010 13:13:33 +0000
Subject: svn: /pear/packages/HTTP_Session2/trunk/tests/ test-session-doctrine.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-60234@lists.php.net to get a copy of this message
till Fri, 03 Sep 2010 13:13:33 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=303024 Log: * fix up for new vendor path * make set_include_path() conditional (only in svn checkout) Changed paths: U pear/packages/HTTP_Session2/trunk/tests/test-session-doctrine.phpt Modified: pear/packages/HTTP_Session2/trunk/tests/test-session-doctrine.phpt =================================================================== --- pear/packages/HTTP_Session2/trunk/tests/test-session-doctrine.phpt 2010-09-03 13:08:15 UTC (rev 303023) +++ pear/packages/HTTP_Session2/trunk/tests/test-session-doctrine.phpt 2010-09-03 13:13:33 UTC (rev 303024) @@ -12,6 +12,13 @@ if (!extension_loaded('pdo_sqlite')) { die('Skip This test needs pdo_sqlite, please make sure it\'s loaded.'); } +/** + * @desc For unittesting from an svn checkout and to make Daniel happy. + */ +$vendorPath = realpath(dirname(__FILE__) . '/../vendor'); +if ($vendorPath !== false) { + set_include_path($vendorPath . DIRECTORY_SEPARATOR . get_include_path()); +} include_once 'Doctrine/lib/Doctrine.php'; if (!class_exists('Doctrine')) { die('Skip This test needs phpDoctrine, please make sure it\'s installed.');

« previous php.pear.cvs (#60234) next »