scabbiafw/scabbia2-testing
最新稳定版本:v0.1.5
Composer 安装命令:
composer require --dev scabbiafw/scabbia2-testing
包简介
Scabbia2 Testing Component
README 文档
README
This component provides a code testing framework and environment. Simply execute ./vendor/bin/scabbia scabbia:testing:test to start unit tests.
Usage
Writing a Test Fixture
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'); } }
Links
Contributing
It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome. All contributions should be filed on the eserozvataf/scabbia2-testing repository.
统计信息
- 总下载量: 312
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-09-07