--
You received this message because you are subscribed to the Google Groups "Maven for PHP" group.
To post to this group, send email to maven-...@googlegroups.com.
To unsubscribe from this group, send email to maven-for-ph...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/maven-for-php?hl=en.
Does somebody have a suggestion how to solve this issue:[ERROR] Failed to execute goal org.phpmaven:maven-php-plugin:2.0.0-beta-2:resources (default-resources) on project my-app: Problems creating maven project from dependency: Error resolving project artifact: Failure to find de.phpunit:phpunit:pom:3.6.10 in http://repos.php-maven.org/releases was cached in the local repository, resolution will not be reattempted until the update interval of release-repo1.php-maven.org has elapsed or updates are forced for project de.phpunit:phpunit:phar:3.6.10 -> [Help 1]
--
You received this message because you are subscribed to the Google Groups "Maven for PHP" group.
To view this discussion on the web visit https://groups.google.com/d/msg/maven-for-php/-/uNyiXK3BDL4J.
"It is depending on your php.ini" >> YOu mean that jetty is using the
php.exe and php.ini files in my local installation right ? (Wamp in my
case)
BTW, is there anywhere I can follow up on the whole local server
deployment goal we discussed before ?
> > maven-for-php+unsubscribe@googlegroups.com.
To unsubscribe from this group, send email to maven-for-php+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/maven-for-php/-/cczimUtuXwMJ.
To unsubscribe from this group, send email to maven-for-ph...@googlegroups.com.
is it possible to get your pom.xml?
[DEBUG] (f) resultFolder = D:\Dev\ws\test\target\phpunit-reports
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@66e8c7db
[DEBUG] (f) singleTestInvocation = false
[DEBUG] (f) skip = false
[DEBUG] (f) skipTests = false
[DEBUG] (f) targetClassesDirectory = D:\Dev\ws\test\target\classes
[DEBUG] (f) targetTestClassesDirectory = D:\Dev\ws\test\target\test-classes
[DEBUG] (f) temporaryScriptFile = D:\Dev\ws\test\target\snippet.php
[DEBUG] (f) testDependenciesTargetDirectory = D:\Dev\ws\test\target\php-test-d
eps
[DEBUG] (f) testFailureIgnore = false
[DEBUG] (f) testPostfix = Test
[DEBUG] -- end configuration --
[DEBUG] Starting test file walker.
[DEBUG] param testCompilSourceRoot: D:\Dev\ws\test\src\test\php
[DEBUG] param isFailIfNoTests: false
[DEBUG] param testPostfix: Test
[DEBUG] param phpFileEnding: php
[DEBUG] Testing file D:\Dev\ws\test\src\test\php\FooTest.php for test file.
[DEBUG] Adding file as test file D:\Dev\ws\test\src\test\php\FooTest.php
[DEBUG] Returning test files [D:\Dev\ws\test\src\test\php\FooTest.php]
[DEBUG] Configuring component 'org.phpmaven.project.ProjectPhpExecution' with ba
sic configurator -->
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@66e8c7db
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.project.ProjectPhpExecution' with ba
sic configurator -->
[DEBUG] -- end configuration --
[INFO] dependency org.phpunit:phpunit5:3.6.10:compile@C:\Users\mepeisen\.m2\repo
sitory\org\phpunit\phpunit5\3.6.10\phpunit5-3.6.10.phar
[INFO] dependency com.zend.framework:framework:1.11.11:compile@C:\Users\mepeisen
\.m2\repository\com\zend\framework\framework\1.11.11\framework-1.11.11.phar
[INFO] dependency org.apache.log4php:log4php:2.2.0:compile@C:\Users\mepeisen\.m2
\repository\org\apache\log4php\log4php\2.2.0\log4php-2.2.0.phar
[DEBUG] []
[INFO]
-------------------------------------------------------
T E S T S
-------------------------------------------------------
[DEBUG] Configuring component 'org.phpmaven.phpunit.impl.PhpunitConfiguration' w
ith basic configurator -->
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@66e8c7db
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.phpunit.impl.PhpunitConfiguration' w
ith basic configurator -->
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.phpunit.impl.PhpunitTestRequest' wit
h basic configurator -->
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.phpunit.impl.PhpunitService' with ba
sic configurator -->
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.phpunit.impl.PhpunitSupport360' with
basic configurator -->
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@66e8c7db
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.phpunit.impl.PhpunitSupport360' with
basic configurator -->
[DEBUG] -- end configuration --
[INFO] Starting tests.
[DEBUG] Configuring component 'org.phpmaven.project.ProjectPhpExecution' with ba
sic configurator -->
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@66e8c7db
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.project.ProjectPhpExecution' with ba
sic configurator -->
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.exec.PhpExecutableConfiguration' wit
h basic configurator -->
[DEBUG] (s) workDirectory = D:\Dev\ws\test\target
[DEBUG] (s) temporaryScriptFile = D:\Dev\ws\test\target\snippet.php
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@7746df77
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.exec.PhpExecutableConfiguration' wit
h basic configurator -->
[DEBUG] -- end configuration --
[DEBUG] Configuring component 'org.phpmaven.exec.PhpExecutable' with basic confi
gurator -->
[DEBUG] -- end configuration --
[DEBUG] Executing cmd.exe /X /C "php -d include_path=;D:\Dev\ws\test\target\clas
ses;D:\Dev\ws\test\target\php-deps;D:\Dev\ws\test\target\php-deps\pear;D:\Dev\ws
\test\target\classes;D:\Dev\ws\test\target\php-test-deps;D:\Dev\ws\test\target\p
hp-test-deps\pear D:\Dev\ws\test\target\snippet.php --log-junit D:\Dev\ws\test\t
arget\phpunit-reports\FooTest.xml D:\Dev\ws\test\src\test\php\FooTest.php"
[DEBUG] php.out: PHPUnit 3.6.10 by Sebastian Bergmann.
[DEBUG] php.out:
[DEBUG] php.out: .
[DEBUG] php.out:
[DEBUG] php.out: Time: 0 seconds, Memory: 3.25Mb
[DEBUG] php.out:
[DEBUG] php.out: OK (1 test, 0 assertions)
[INFO]
Results :
TEST SUCCESS
SUCCESS [FooTest] 0.001794s / 1 Tests, 0 Failures, 0 Errors
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.563s
[INFO] Finished at: Sat Mar 17 13:17:22 CET 2012
[INFO] Final Memory: 11M/167M
[INFO] ------------------------------------------------------------------------
D:\Dev\ws\test>
--
You received this message because you are subscribed to the Google Groups "Maven for PHP" group.
To view this discussion on the web visit https://groups.google.com/d/msg/maven-for-php/-/7tXKWEDs5I0J.
To unsubscribe from this group, send email to maven-for-php+unsubscribe@googlegroups.com.
Sorry, at the moment you will need some bootstrap initializing the zend framework for testing. At least setup the autoloading. This may change in future versions. PHP-Maven does not know anything about the zend-framework yet.So setup a small bootstrap used for testing.
--
You received this message because you are subscribed to the Google Groups "Maven for PHP" group.
To post to this group, send email to maven-...@googlegroups.com.
To unsubscribe from this group, send email to maven-for-ph...@googlegroups.com.
Hi.
Please read http://framework.zend.com/manual/en/zend.test.phpunit.html (second chapter) and http://nikitasreedharan.com/blog/?p=111
You need a special test bootstrap that does everything but does not create the zend application itself.
The zend_application is created inside a setup method of the testcase.
Greetings Martin
On Mon, Mar 19, 2012 at 3:24 PM, Ryan R. <ryan.r...@gmail.com> wrote:
Ok
Then should I use my bootstrap.php file as the autoloader ?
2012/3/18 martin.eisengardt <martin.eisengardt@googlemail.com>
phpunit.xml is currently not respected, yes. it will be changing before releasing 2.0.0 :)You need a workaround at the moment.
On Sun, Mar 18, 2012 at 5:42 PM, Ryan R. <ryan.r...@gmail.com> wrote:
Actually have a bootstrap.php file to initialize the zend framework even within the phpunit test ( see content below) but as I mentioned earlier, the phpunit.xml file is located in src\main\resources\etc when it should logically be in src\test\resources...
However, if the location of the file does not have any impact of the use of user-defined configuration within the xml file then I can define in the xml file where my bootstrap.php file is but then again, the path that are in the xml file by default would be false (since they're not "maven-for-php like")
Bootstrap.php content :
<?php
error_reporting( E_ALL | E_STRICT );
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'testing'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(realpath(APPLICATION_PATH . '/../library'), get_include_path())));
/** Zend_Application */
require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$application = new Zend_Application(APPLICATION_ENV, realpath(dirname(__FILE__) . '/../application/configs/application.ini'));
$application->bootstrap()->run();
Cheers.
2012/3/18 martin.eisengardt <martin.eisengardt@googlemail.com>
Sorry, at the moment you will need some bootstrap initializing the zend framework for testing. At least setup the autoloading. This may change in future versions. PHP-Maven does not know anything about the zend-framework yet.So setup a small bootstrap used for testing.--You received this message because you are subscribed to the Google Groups "Maven for PHP" group.
To post to this group, send email to maven-...@googlegroups.com.
To unsubscribe from this group, send email to maven-for-php+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Maven for PHP" group.
To post to this group, send email to maven-...@googlegroups.com.
To unsubscribe from this group, send email to maven-for-php+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Maven for PHP" group.
To post to this group, send email to maven-...@googlegroups.com.
To unsubscribe from this group, send email to maven-for-php+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Maven for PHP" group.
To post to this group, send email to maven-...@googlegroups.com.
To unsubscribe from this group, send email to maven-for-php+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/maven-for-php/-/bGLM7YScthUJ.
To unsubscribe from this group, send email to maven-for-ph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/maven-for-php/-/kMlA5xWiZlEJ.
To unsubscribe from this group, send email to maven-for-ph...@googlegroups.com.