예제 #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());
 }
 /**
  * @expectedException   Appfuel\Framework\Exception
  * @return null
  */
 public function testSetCallbackInt()
 {
     $this->request->setCallback(1234);
 }