public function testGetTraceByOffset() { $err = new \r8\Exception(); $trace = $err->getTraceByOffset(0); $this->assertThat($trace, $this->isInstanceOf('\\r8\\Backtrace\\Event')); $this->assertEquals(__FUNCTION__, $trace->getName()); }