Example #1
0
 /**
  * Registers toolbar listeners if enabled.
  *
  * @return self
  */
 protected function registerToolbar()
 {
     if ($this->options->isToolbarEnabled()) {
         $this->sharedEventManager->attach('profiler', $this->serviceLocator->get('ZDT_ToolbarListener'), null);
     }
     return $this;
 }
 public function testStatusOfDefaultConfiguration()
 {
     $dist = (require __DIR__ . "/../config/zenddevelopertools.local.php.dist");
     $reportMock = $this->getMock("ZendDeveloperTools\\ReportInterface");
     $options = new Options($dist['zenddevelopertools'], $reportMock);
     $this->assertTrue($options->isEnabled());
     $this->assertTrue($options->isToolbarEnabled());
 }