Skip to content

Instantly share code, notes, and snippets.

@mageekguy
Created March 30, 2012 13:29
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/2251563 to your computer and use it in GitHub Desktop.
Save mageekguy/2251563 to your computer and use it in GitHub Desktop.
public function testExecute()
{
$this
->if->mockGenerator->shunt('__construct')
->and->mockGenerator->shunt('write')
->and((new command($socket = new \mock\socket()))->execute())
->then
->mock($socket)
->call('write')
->withArguments('vc', array(00, 0x01), 6)
->once()
;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment