Inheritance: implements PhpSpec\Locator\Resource
 protected function is(PSR0Resource $resource, $tag)
 {
     $tokens = $this->filesystem->getTokens($resource->getSrcFilename());
     foreach ($tokens as $token) {
         if (is_array($token) && current($token) === $tag) {
             return true;
         }
     }
     return false;
 }
 protected function hasSpec(PSR0Resource $resource)
 {
     return $this->filesystem->pathExists($resource->getSpecFilename());
 }
 public function getSrcFilename()
 {
     $filename = parent::getSrcFilename();
     $filename = preg_replace("/.php\$/", $this->extension, $filename);
     return $filename;
 }