easychen / LazyPHP4

LazyPHP4 , an API first framework for php developer
313 stars 66 forks source link

添加路由、输入验证和文档生成的单元测试和验收测试 #2

Open easychen opened 10 years ago

easychen commented 10 years ago

测试在指定路由的情况下,Dispatcher是否运行正常。

重点包括 路由中带有参数,路由中带有可选参数,以及路由和参数绑定同时带有参数的情况。

可在PHPUnit中手动加载meta数组进行测试,或者通过behat 直接测试接口。