Esempio n. 1
0
 /**
  * Test set host and port
  */
 public function testHostAndPort()
 {
     $config = $this->getMockBuilder('Deployer\\Server\\Configuration')->disableOriginalConstructor()->getMock();
     $env = $this->getMock('Deployer\\Server\\Environment');
     $config->expects($this->once())->method('setHost')->with('localhost')->will($this->returnSelf());
     $config->expects($this->once())->method('setPort')->with(22)->will($this->returnSelf());
     $b = new Builder($config, $env);
     $b->host('localhost');
     $b->port(22);
 }