Update test

This commit is contained in:
Elfet 2014-07-06 17:29:20 +04:00
parent 70e6f3821a
commit 8a6b8b11f5

View File

@ -11,12 +11,16 @@ class DeployerTest extends DeployerTester
{
public function testRun()
{
task('task', function () {
writeln('task');
$mock = $this->getMock('stdClass', ['callback']);
$mock->expects($this->exactly(1))
->method('callback')
->will($this->returnValue(true));
task('task', function () use ($mock) {
$mock->callback();
});
$appTester = $this->runCommand('task');
$this->assertEquals("task\n", $appTester->getDisplay());
}
}