/**
  * @test
  */
 public function getConfigurationForPathWithWildcardTest()
 {
     $uri = 'my_secondext-my_model/34/';
     $request = new Request(NULL, $uri);
     $testConfiguration = array('path' => 'my_secondext-*', 'read' => 'deny', 'write' => 'allow');
     $configuration = $this->fixture->getConfigurationForPath($request->path());
     $this->assertEquals($testConfiguration, $configuration);
 }
示例#2
0
文件: Cache.php 项目: tritumRz/rest
 /**
  * Returns the tags for the current request
  *
  * @return array[string]
  */
 protected function _getTags()
 {
     $currentPath = $this->currentRequest->path();
     list($vendor, $extension, $model) = Utility::getClassNamePartsForPath($currentPath);
     return array($vendor . '_' . $extension . '_' . $model, $extension . '_' . $model, $currentPath);
 }