コード例 #1
0
 public function testArrayInstance()
 {
     $this->assertEquals(['herroffizier\\yii2artc\\tests\\codeception\\_helpers\\Model1', 'herroffizier\\yii2artc\\tests\\codeception\\_helpers\\Model2'], TagBuilder::buildTags([Model1::className(), Model2::className()]));
 }
コード例 #2
0
 /**
  * Get array of tags for dependency.
  *
  * @return string[]
  */
 protected function getCacheTags()
 {
     $classes = [$this->owner];
     $tags = TagBuilder::buildTags($classes);
     return $tags;
 }