Created
March 30, 2012 21:06
-
-
Save mageekguy/2255009 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
public function testExecute() | |
{ | |
$this->mockGenerator->shunt('__construct'); | |
$socket = new \mock\socket(); | |
$socket->getMockController()->write = function() {}; | |
new command($socket))->execute(); | |
$this->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