Esempio n. 1
0
 public function testConstructor()
 {
     $profile = new Apishka_Templater_Profiler_Profile('template', 'type', 'name');
     $this->assertEquals('template', $profile->getTemplate());
     $this->assertEquals('type', $profile->getType());
     $this->assertEquals('name', $profile->getName());
 }
Esempio n. 2
0
 protected function formatNonTemplate(Apishka_Templater_Profiler_Profile $profile, $prefix)
 {
     return sprintf('%s└ %s::%s(<span style="background-color: %s">%s</span>)', $prefix, $profile->getTemplate(), $profile->getType(), isset(self::$colors[$profile->getType()]) ? self::$colors[$profile->getType()] : 'auto', $profile->getName());
 }
Esempio n. 3
0
 protected function formatNonTemplate(Apishka_Templater_Profiler_Profile $profile, $prefix)
 {
     return sprintf('%s└ %s::%s(%s)', $prefix, $profile->getTemplate(), $profile->getType(), $profile->getName());
 }