:
可以快速实现
简化测试开发
允许编写可靠,可读和简洁的单元测试
示例:
<?phpnamespace vendorprojecttestsunits;require_once 'path/to/mageekguy.atoum.phar';include_once 'path/to/project/classes/helloWorld.php';use mageekguyatoum;use vendorproject;class helloWorld extends atoumtest{ public function testSay() { $helloWorld = new projecthelloWorld(); $this->string($helloWorld->say())->isEqualTo('Hello World!') ; }}