Deployer\Server\Environment::set PHP Method

set() public method

public set ( string $name, boolean | integer | string | array $value )
$name string
$value boolean | integer | string | array
    public function set($name, $value)
    {
        $this->checkIfNameIsProtected($name);
        $this->values[$name] = $value;
    }

Usage Example

 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));
 }
All Usage Examples Of Deployer\Server\Environment::set