User tests: Successful: Unsuccessful:
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.
Title |
|
||||||
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&tracker_item_id=33081&start=0">http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33081&start=0</a></p> | ||||
Status | New | ⇒ | Closed | ||||
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-01-31 00:40:32 | ||||
Labels |
Added:
?
?
?
|
Reference to same problem in framework: joomla/joomla-framework#217