protected function setUp()
{
$this->console = new Application();
$this->_input = $this->getMock('Symfony\\Component\\Console\\Input\\InputInterface');
$this->_output = $this->getMock('Symfony\\Component\\Console\\Output\\OutputInterface');
$this->_server = $this->getMockBuilder('Deployer\\Server\\ServerInterface')->disableOriginalConstructor()->getMock();
$this->_env = new Environment();
$this->_env->set("local_path", __DIR__ . '/../fixture/app');
$this->_env->set("remote_path", "/home/www");
$this->deployer = new Deployer($this->console, $this->_input, $this->_output);
Context::push(new Context($this->_server, $this->_env, $this->_input, $this->_output));
}