$this->assertSame('exception', $c->getName());
$this->assertSame($trace, $c->getTrace());
}
+
+ public function testCollectWithoutException()
+ {
+ $c = new ExceptionDataCollector();
+ $c->collect(new Request(), new Response());
+
+ $this->assertFalse($c->hasException());
+ }
+
+ public function testReset()
+ {
+ $c = new ExceptionDataCollector();
+
+ $c->collect(new Request(), new Response(), new \Exception());
+ $c->reset();
+ $c->collect(new Request(), new Response());
+
+ $this->assertFalse($c->hasException());
+ }
}