! ! , - , - sibling . PHPUnit, .
, doEverything() , - :
public function testDoEverything()
{
$mock = $this->getMockBuilder('\MyClass')
->setMethods(array('doA', 'doB', 'doC'))
->getMock();
$mock->expects($this->once())
->method('doA');
$mock->expects($this->once())
->method('doB');
$mock->expects($this->once())
->method('doC');
$mock->doEverything();
}
! !
: Laravel Codeception...
Laravel Framework, Codeception, . Laravel Codeception, , , Laravel PHPUnit. unit.suite.yml, Laravel4, :
class_name: UnitTester
modules:
enabled: [Asserts, UnitHelper, Laravel4]
php codecept.phar build, .