Last active
August 29, 2015 13:57
-
-
Save mageekguy/9503042 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace company\project\tests\units; | |
use | |
atoum, | |
company\project | |
; | |
class workflow extends atoum | |
{ | |
public function testExecutionTriggersWorkInService() | |
{ | |
$this | |
->given($this->newTestedInstance(new project\backend(), new \mock\company\project\service())) | |
->then | |
->object($this->testedInstance->execute(new project\request(array('id' => 2204)))) | |
->isEqualTo(new project\result(/* ... */)) | |
->mock($service)->call('doWork')->once | |
; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment