示例#1
0
 /** Tests init */
 public function setUp()
 {
     // Create mock
     $this->viewable = $this->getMockBuilder('samson\\core\\Service')->disableOriginalConstructor()->getMock();
     /*// Get instance using services factory as error will signal other way
       $this->form = new Form($this->viewable);*/
     // Disable default error output
     Error::$OUTPUT = false;
 }
示例#2
0
 /** Tests init */
 public function setUp()
 {
     Error::$OUTPUT = false;
     $this->deploy = Service::getInstance('\\samsonphp\\deploy\\Deploy');
     $this->deploy->remote = $this->getMockBuilder('\\samsonphp\\deploy\\Remote')->disableOriginalConstructor()->getMock();
     $this->deploy->wwwroot = 'test';
     $this->deploy->host = 'test';
     $this->deploy->username = '******';
     $this->deploy->password = '******';
     $this->deploy->sourceroot = sys_get_temp_dir() . '/';
 }