コード例 #1
0
 /**
  * @test
  * @author Robert Lemke <*****@*****.**>
  */
 public function getClassTagValuesReturnsArrayOfValuesOfASpecificClassTag()
 {
     $availableClassNames = array('F3\\FLOW3\\Tests\\Reflection\\Fixture\\TaggedClass3');
     $reflectionService = new \F3\FLOW3\Reflection\ReflectionService();
     $reflectionService->setStatusCache($this->getMock('F3\\FLOW3\\Cache\\Frontend\\StringFrontend', array(), array(), '', FALSE));
     $reflectionService->setDataCache($this->getMock('F3\\FLOW3\\Cache\\Frontend\\VariableFrontend', array(), array(), '', FALSE));
     $reflectionService->injectSystemLogger($this->getMock('F3\\FLOW3\\Log\\SystemLoggerInterface'));
     $reflectionService->initialize($availableClassNames);
     $expectedValues = array('one, two', 'three, four');
     $detectedValues = $reflectionService->getClassTagValues('F3\\FLOW3\\Tests\\Reflection\\Fixture\\TaggedClass3', 'thirdtag');
     ksort($detectedValues);
     $this->assertEquals($expectedValues, $detectedValues);
 }