mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 00:32:25 +01:00
Update test
This commit is contained in:
parent
70e6f3821a
commit
8a6b8b11f5
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user