Exemplo n.º 1
0
 public function testBacktrace()
 {
     $this->assertRegExp('#\\{doc_root\\}(/|\\\\)classes(/|\\\\)fCore(/|\\\\)fCoreTest.php\\(\\d+\\): fCore::backtrace\\(\\)#', fCore::backtrace());
 }
Exemplo n.º 2
0
 /**
  * Throws an exception if the directory has been deleted
  * 
  * @return void
  */
 protected function tossIfDeleted()
 {
     if ($this->deleted) {
         throw new fProgrammerException("The action requested can not be performed because the directory has been deleted\n\nBacktrace for fDirectory::delete() call:\n%s", fCore::backtrace(0, $this->deleted));
     }
 }