buddylindsey / li3_phinger
此插件增加了在lithium项目中使用phing的能力
dev-master
2012-12-19 20:42 UTC
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2024-09-28 14:24:42 UTC
README
一个用于运行lithium测试的Phing任务。
用法
以下是一个示例Phing构建文件,它仅运行lithium测试。
<?xml version="1.0"?>
<project name="lithium-app" default="main">
<target name="main">
<taskdef classname="TestTask" classpath="li3_phinger/core" name="li3test" />
<li3test li3Base="." tests="app\tests" />
</target>
</project>
参数
li3Base : 这是lithium的基础位置,其中包含应用和库目录。tests : 这是你希望运行的测试,它使用Web界面的参数。因此,“all”将运行所有测试,“app\tests”将运行该命名空间中的所有测试等。
已知问题
由于lithium定义其基础URL处理的方式,你需要模拟Request类并重新定义Request::_base()来设置 $this->base 为 '/'。