예제 #1
0
 /**
  * @test
  */
 public function logException()
 {
     try {
         throw new \Exception('This is a Test Exception');
     } catch (\Exception $e) {
         $this->logger->logException($e);
     }
     $this->assertLogFileContains('[CRITICAL]');
     $this->assertLogFileContains('component="Tx.PtExtbase.Logger.Logger": Uncaught exception: This is a Test Exception - See also:');
     $this->assertCount(1, Tx_PtExtbase_Utility_Files::readDirectoryRecursively($this->logExceptionsPath));
 }
 /**
  * @param $identifier
  * @return array
  */
 public function getDirectoryListing($identifier)
 {
     return Tx_PtExtbase_Utility_Files::readDirectoryRecursively($this->getHashPath($identifier, true));
 }