예제 #1
0
 public function testBacktrace()
 {
     $this->assertRegExp('#\\{doc_root\\}(/|\\\\)classes(/|\\\\)fCore(/|\\\\)fCoreTest.php\\(\\d+\\): fCore::backtrace\\(\\)#', fCore::backtrace());
 }
예제 #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));
     }
 }