Exemple #1
0
 public function testSmallUrl()
 {
     $request = Request::create('x2.txt', 'DELETE');
     $parser = new Parser($request);
     $this->assertEquals('App', $parser->getNamespace());
     $this->assertEquals('X2', $parser->getClassName());
     $this->assertEquals('DELETE', $parser->getRequestMethod());
     $this->assertEquals('txt', $parser->getAction());
     $this->assertEquals('App\\X2', $parser->getClassFullName());
 }
Exemple #2
0
 private function invokeFunctionWithFixtures()
 {
     $this->processFixture('prefix');
     $out = call_user_func_array(array($this->getInstance(), $this->parser->getAction()), $this->params);
     if ($this->rAnotations->has('view')) {
         $out = $this->renderView($out);
     }
     $this->processFixture('postfix');
     return $out;
 }