? ? Success

User tests: Successful: Unsuccessful:

avatar asika32764
asika32764
4 Jan 2014

We use hard code including PHPUnit Database package now. But it will cause the error if we use phpunit.phar or other phpunit package without pear.

If we type php phpunit.phar in Joomla dir, return this error:

Warning: require_once(PHPUnit/Extensions/Database/TestCase.php): failed to open stream: No such file or directory in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9

Fatal error: require_once(): Failed opening required 'PHPUnit/Extensions/Database/TestCase.php' (include_path='.;C:\bin\pear\pear') in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9PHP Warning:  require_once(PHPUnit/Extensions/Database/TestCase.php): failed to open stream: No such file or directory in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9

PHP Fatal error:  require_once(): Failed opening required 'PHPUnit/Extensions/Database/TestCase.php' (include_path='.;C:\bin\pear\pear') in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9

Process finished with exit code 255

So I do this change to get rid of hard code including PHPUnit Database from pear that developers can use their own phpunit package to test Joomla.

JTracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33081&start=0

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar asika32764 asika32764 - open - 4 Jan 2014
avatar asika32764
asika32764 - comment - 4 Jan 2014

Reference to same problem in framework: joomla/joomla-framework#217

avatar mbabker mbabker - close - 31 Jan 2014
avatar mbabker mbabker - change - 31 Jan 2014
The description was changed
Title
Get rid of including phpunit classes from pear
[#33081] Get rid of including phpunit classes from pear
Description <p>We use hard code including PHPUnit Database package now. But it will cause the error if we use phpunit.phar or other phpunit package without pear.</p> <p>If we type <code>php phpunit.phar</code> in Joomla dir, return this error:</p> <pre><code>Warning: require_once(PHPUnit/Extensions/Database/TestCase.php): failed to open stream: No such file or directory in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9 Fatal error: require_once(): Failed opening required 'PHPUnit/Extensions/Database/TestCase.php' (include_path='.;C:\bin\pear\pear') in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9PHP Warning: require_once(PHPUnit/Extensions/Database/TestCase.php): failed to open stream: No such file or directory in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9 PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Extensions/Database/TestCase.php' (include_path='.;C:\bin\pear\pear') in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9 Process finished with exit code 255 </code></pre> <p>So I do this change to get rid of hard code including PHPUnit Database from pear that developers can use their own phpunit package to test Joomla.</p> <p>We use hard code including PHPUnit Database package now. But it will cause the error if we use phpunit.phar or other phpunit package without pear.</p> <p>If we type <code>php phpunit.phar</code> in Joomla dir, return this error:</p> <pre><code>Warning: require_once(PHPUnit/Extensions/Database/TestCase.php): failed to open stream: No such file or directory in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9 Fatal error: require_once(): Failed opening required 'PHPUnit/Extensions/Database/TestCase.php' (include_path='.;C:\bin\pear\pear') in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9PHP Warning: require_once(PHPUnit/Extensions/Database/TestCase.php): failed to open stream: No such file or directory in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9 PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Extensions/Database/TestCase.php' (include_path='.;C:\bin\pear\pear') in D:\www\repo\joomladev\tests\unit\core\case\database.php on line 9 Process finished with exit code 255 </code></pre> <p>So I do this change to get rid of hard code including PHPUnit Database from pear that developers can use their own phpunit package to test Joomla.</p> <p>JTracker: <a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;tracker_item_id=33081&amp;start=0">http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;tracker_item_id=33081&amp;start=0</a></p>
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-01-31 00:40:32
Labels Added: ? ? ?
avatar mbabker mbabker - close - 31 Jan 2014
avatar Bakual Bakual - reference | 68564a8 - 12 May 14

Add a Comment

Login with GitHub to post a comment