예제 #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());
 }