eserozvataf /scabbia2-testing
该软件包已被废弃且不再维护。没有建议的替代包。
Scabbia2 测试组件
v0.1.5
2015-09-24 10:05 UTC
Requires
- php: >=5.6.0
- scabbiafw/scabbia2-formatters: *
- scabbiafw/scabbia2-helpers: *
Requires (Dev)
Suggests
- ext-xdebug: Required for coverage reports
This package is auto-updated.
Last update: 2023-09-08 19:44:01 UTC
README
此组件提供代码测试框架和环境。只需执行./vendor/bin/scabbia scabbia:testing:test
即可开始单元测试。
使用说明
编写测试用例
namespace MyProject\Tests; use Scabbia\Testing\UnitTestFixture; class MyTest extends UnitTestFixture { protected $parser; protected function setUp() { $this->parser = new \Scabbia\Yaml\Parser\Parser(); } protected function tearDown() { $this->parser = null; } public function testCase1() { $this->assertEquals('a', 'a'); } public function testCase2() { $this->expectException('Scabbia\\Yaml\\ParseException'); $this->parser->parse('/&afasda:sd|_*a'); } }
链接
贡献
任何贡献都是公开的。欢迎提交错误修复、新功能和额外模块。所有贡献都应提交到eserozvataf/scabbia2-testing仓库。