Exemplo n.º 1
0
 public function addTest(Apishka_Templater_Test $test)
 {
     $this->tests[$test->getName()] = $test;
 }
Exemplo n.º 2
0
 /**
  * Registers a Test.
  *
  * @param Apishka_Templater_Test $test A Apishka_Templater_Test instance
  */
 public function addTest(Apishka_Templater_Test $test)
 {
     if ($this->extensionInitialized) {
         throw new LogicException(sprintf('Unable to add test "%s" as extensions have already been initialized.', $test->getName()));
     }
     $this->staging->addTest($test);
 }