deployer/test/DeployerTest.php

26 lines
609 B
PHP
Raw Normal View History

2014-07-05 12:59:06 +04:00
<?php
/* (c) Anton Medvedev <anton@elfet.ru>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
class DeployerTest extends DeployerTester
{
public function testRun()
{
2014-07-06 17:29:20 +04:00
$mock = $this->getMock('stdClass', ['callback']);
$mock->expects($this->exactly(1))
->method('callback')
->will($this->returnValue(true));
task('task', function () use ($mock) {
$mock->callback();
2014-07-05 12:59:06 +04:00
});
$appTester = $this->runCommand('task');
}
}