Example #1
0
 /**
  * Test set user for connection
  */
 public function testUser()
 {
     $config = $this->getMockBuilder('Deployer\\Server\\Configuration')->disableOriginalConstructor()->getMock();
     $env = $this->getMock('Deployer\\Server\\Environment');
     $config->expects($this->once())->method('setUser')->with('user')->will($this->returnSelf());
     $b = new Builder($config, $env);
     $b->user('user');
 }