public function testUndefinedFunctionIndex()
 {
     $stackTrace = debug_backtrace();
     unset($stackTrace[0]['function']);
     $encoder = new Understand\UnderstandLaravel5\ExceptionEncoder();
     $stackTraceArray = $encoder->stackTraceToArray($stackTrace);
     $this->assertEmpty($stackTraceArray[0]['function']);
 }
 public function testStackTraceSerializationWithoutArgs()
 {
     $stackTrace = debug_backtrace();
     unset($stackTrace[0]['args']);
     $encoder = new Understand\UnderstandLaravel5\ExceptionEncoder();
     $stackTraceArray = $encoder->stackTraceToArray($stackTrace);
     $this->assertEmpty($stackTraceArray[0]['args']);
 }