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