General Info:
PHP 5.3.3
PHPUnit 3.4
Zend Framework 1.10.8
Phing build target
<target name="test">
<echo msg="PHPUnit..." />
<phpunit codecoverage="false" haltonfailure="true" haltonerror="true" printsummary="true" bootstrap="${testdir}/application/bootstrap.php">
<batchtest>
<fileset dir="${testdir}">
<include name="**/*Test.php" />
<exclude name="./application/ControllerTestCase.php" />
<exclude name="./application/bootstrap.php" />
</fileset>
</batchtest>
<formatter type="xml" todir="${builddir}" outfile="phpunit-results.xml" />
</phpunit>
<phpunitreport infile="${builddir}/phpunit-results.xml"
styledir="${phpunit.styles.dir}"
format="frames"
todir="${builddir}" />
</target>
This works...
phing -f build.xml test
Hudson/Phing
Aynı build.xml dosyasını kullanır Hudson listelenen Benim Phing hedef, çalışmaz. $ This-> gönderme (.. url ..) yürütülen her oluşan her birim test için: ben hata aynı tip (Boş sınırlayıcı strpos ()) olsun.
Occurs within the console output upon execution of the unit test target in Hudson
'strpos(): Empty delimiter' in /opt/phing/classes/phing/tasks/ext/phpunit/PHPUnitTask.php:279
Within the PHPUnit results XML file
strpos(): Empty delimiter
/opt/zend/library/Zend/Controller/Request/Http.php:504
/opt/zend/library/Zend/Controller/Request/Http.php:551
/opt/zend/library/Zend/Controller/Request/Http.php:615
/opt/zend/library/Zend/Test/PHPUnit/ControllerTestCase.php:187
/var/lib/hudson/.hudson/jobs/IPS/workspace/trunk/tests/application/IndexControllerTest.php:6
/opt/phing/bin/phing.php:37
Herkes bu konuda biraz ışık tutabilir?