Last modified: 2013-05-06 18:38:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34022, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32022 - Php unit seems to use some sort of crappy directory relativity
Php unit seems to use some sort of crappy directory relativity
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-28 19:13 UTC by Sam Reed (reedy)
Modified: 2013-05-06 18:38 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2011-10-28 19:13:18 UTC
reedy@ubuntu64-web-esxi:~/mediawiki/trunk/phase3$ php tests/phpunit/phpunit.php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/sqlite.so' - /usr/lib/php5/20090626/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
Unexpected non-MediaWiki exception encountered, of type "RuntimeException"
exception 'RuntimeException' with message 'Cannot open file "././suites/UploadFromUrlTestSuite.php".
' in /usr/share/php/PHPUnit/Util/Fileloader.php:76
Stack trace:
#0 /usr/share/php/PHPUnit/Framework/TestSuite.php(382): PHPUnit_Util_Fileloader::checkAndLoad('./suites/Upload...', false)
#1 /usr/share/php/PHPUnit/Util/Configuration.php(772): PHPUnit_Framework_TestSuite->addTestFile('./suites/Upload...', false)
#2 /usr/share/php/PHPUnit/Util/Configuration.php(715): PHPUnit_Util_Configuration->getTestSuite(Object(DOMElement), false)
#3 /usr/share/php/PHPUnit/TextUI/Command.php(659): PHPUnit_Util_Configuration->getTestSuiteConfiguration(false)
#4 /usr/share/php/PHPUnit/TextUI/Command.php(138): PHPUnit_TextUI_Command->handleArguments(Array)
#5 /home/reedy/mediawiki/trunk/phase3/tests/phpunit/MediaWikiPHPUnitCommand.php(31): PHPUnit_TextUI_Command->run(Array, true)
#6 /home/reedy/mediawiki/trunk/phase3/tests/phpunit/phpunit.php(60): MediaWikiPHPUnitCommand::main()
#7 {main}

#0 /usr/share/php/PHPUnit/Framework/TestSuite.php(382): PHPUnit_Util_Fileloader::checkAndLoad('./suites/Upload...', false)
#1 /usr/share/php/PHPUnit/Util/Configuration.php(772): PHPUnit_Framework_TestSuite->addTestFile('./suites/Upload...', false)
#2 /usr/share/php/PHPUnit/Util/Configuration.php(715): PHPUnit_Util_Configuration->getTestSuite(Object(DOMElement), false)
#3 /usr/share/php/PHPUnit/TextUI/Command.php(659): PHPUnit_Util_Configuration->getTestSuiteConfiguration(false)
#4 /usr/share/php/PHPUnit/TextUI/Command.php(138): PHPUnit_TextUI_Command->handleArguments(Array)
#5 /home/reedy/mediawiki/trunk/phase3/tests/phpunit/MediaWikiPHPUnitCommand.php(31): PHPUnit_TextUI_Command->run(Array, true)
#6 /home/reedy/mediawiki/trunk/phase3/tests/phpunit/phpunit.php(60): MediaWikiPHPUnitCommand::main()
#7 {main}
reedy@ubuntu64-web-esxi:~/mediawiki/trunk/phase3$ cd tests/phpunit/
reedy@ubuntu64-web-esxi:~/mediawiki/trunk/phase3/tests/phpunit$ php phpunit.php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/sqlite.so' - /usr/lib/php5/20090626/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHPUnit 3.5.5 by Sebastian Bergmann.

Test Suite
 includes
   TitlePermissionTest
  ^C
reedy@ubuntu64-web-esxi:~/mediawiki/trunk/phase3/tests/phpunit$ php phpunit.php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/sqlite.so' - /usr/lib/php5/20090626/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHPUnit 3.5.5 by Sebastian Bergmann.

Test Suite
 includes
   TitlePermissionTest
  .......

  ArticleTablesTest
  .

  XmlJs
  .

  RevisionTest
  ........

  ZipDirectoryReaderTest
  ..........

  ParserOptionsTest
  .
Comment 1 Roan Kattouw 2011-10-28 20:04:10 UTC
I'm surprised you only noticed this now. The fact that you need to cd into the dir where phpunit.php is has annoyed me for a long time already.
Comment 2 Antoine "hashar" Musso (WMF) 2011-11-01 15:10:54 UTC
Fixed in r101480 by playing with include_path and fixing some paths in suite.xml

Not tagged for REL1_18, I do not think there is any need for that there.

Please reopen this bug and mark revision as fix me if there is any issue.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links