Sample PHP 5 library project incl. jsTestDriver dependency
PHP JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
my-php-module-one
my-php-module-two
.gitignore
README
pom.xml

README

This is just a Sample PHP 5 library project for testing the current maven-php-plugin.

Building the project via 'mvn package' with the current version of the maven-php-plugin
leads actual to the following error:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Results :

TEST FAIILURES
  EXCEPTION [
Failed to execute PHP with arguments '"~/Develop/playground/php/my-php-lib/my-php-module-two/target/snippet.php" --log-junit "~/Develop/playground/php/my-php-lib/my-php-module-two/target/phpunit-reports/webapptest.xml"  "~/Develop/playground/php/my-php-lib/my-php-module-two/src/test/php/org/sample/webapptest.php"' [Return: 255]:
PHP Warning:  require_once(org/sample/app.php): failed to open stream: No such file or directory in ~/Develop/playground/php/my-php-lib/my-php-module-two/target/classes/org/sample/webapp.php on line 3
PHP Stack trace:
PHP   1. {main}() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/snippet.php:0
PHP   2. PHPUnit_TextUI_Command::main() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/snippet.php:3
PHP   3. PHPUnit_TextUI_Command->run() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/TextUI/Command.php:130
PHP   4. PHPUnit_Runner_BaseTestRunner->getTest() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/TextUI/Command.php:150
PHP   5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Runner/BaseTestRunner.php:104
PHP   6. PHPUnit_Runner_StandardTestSuiteLoader->load() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Runner/BaseTestRunner.php:168
PHP   7. PHPUnit_Util_Fileloader::checkAndLoad() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Runner/StandardTestSuiteLoader.php:78
PHP   8. PHPUnit_Util_Fileloader::load() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Util/Fileloader.php:79
PHP   9. include_once() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Util/Fileloader.php:95
PHP  10. require_once() ~/Develop/playground/php/my-php-lib/my-php-module-two/src/test/php/org/sample/webapptest.php:3
PHP Fatal error:  require_once(): Failed opening required 'org/sample/app.php' (include_path=':~/Develop/playground/php/my-php-lib/my-php-module-two/target/classes:~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-deps:~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-deps/pear:~/Develop/playground/php/my-php-lib/my-php-module-two/target/test-classes:~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps:~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/pear') in ~/Develop/playground/php/my-php-lib/my-php-module-two/target/classes/org/sample/webapp.php on line 3
PHP Stack trace:
PHP   1. {main}() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/snippet.php:0
PHP   2. PHPUnit_TextUI_Command::main() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/snippet.php:3
PHP   3. PHPUnit_TextUI_Command->run() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/TextUI/Command.php:130
PHP   4. PHPUnit_Runner_BaseTestRunner->getTest() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/TextUI/Command.php:150
PHP   5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Runner/BaseTestRunner.php:104
PHP   6. PHPUnit_Runner_StandardTestSuiteLoader->load() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Runner/BaseTestRunner.php:168
PHP   7. PHPUnit_Util_Fileloader::checkAndLoad() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Runner/StandardTestSuiteLoader.php:78
PHP   8. PHPUnit_Util_Fileloader::load() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Util/Fileloader.php:79
PHP   9. include_once() ~/Develop/playground/php/my-php-lib/my-php-module-two/target/php-test-deps/PHPUnit/Util/Fileloader.php:95
PHP  10. require_once() ~/Develop/playground/php/my-php-lib/my-php-module-two/src/test/php/org/sample/webapptest.php:3

in file: ~/Develop/playground/php/my-php-lib/my-php-module-two/target/snippet.php

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Sample PHP 5 library multi modul project .......... SUCCESS [0.048s]
[INFO] Sample PHP 5 library - Modul One .................. SUCCESS [1.079s]
[INFO] Sample PHP 5 library - Modul Two .................. FAILURE [0.385s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.242s
[INFO] Finished at: Wed May 16 19:44:13 CEST 2012
[INFO] Final Memory: 8M/301M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.phpmaven:maven-php-plugin:2.0.0:test (default-test) on project my-php-module-two: Test failures -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :my-php-module-two
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

You might find further information under:
https://groups.google.com/forum/?fromgroups#!topic/maven-for-php/IdpAsexvfAo