Skip to content

Instantly share code, notes, and snippets.

@mageekguy
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mageekguy/9503042 to your computer and use it in GitHub Desktop.
Save mageekguy/9503042 to your computer and use it in GitHub Desktop.
<?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