Exemplo n.º 1
0
 public function assertInputPassByReference()
 {
     $input = ['do' => 'stuff', 'kill' => 'a dream'];
     $bag = new ParamBag($input);
     $bag->set('kill', 'nothing');
     $this->assertEquals('nothing', $input->kill);
 }
Exemplo n.º 2
0
 /**
  * Send the header to browser
  */
 public function sendHeaders()
 {
     foreach ($this->headers->all() as $header => $value) {
         header(sprintf('%s:%s', $header, $value));
     }
 }