コード例 #1
0
ファイル: BuilderTest.php プロジェクト: acorncom/deployer
 /**
  * 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);
 }