Beispiel #1
0
 /**
  * @return null
  */
 public function testGetSetCallbackClosure()
 {
     $this->assertNull($this->request->getCallback());
     $callback = function ($raw) {
         return $raw;
     };
     $this->assertSame($this->request, $this->request->setCallback($callback));
     $this->assertSame($callback, $this->request->getCallback());
 }