public function testNotFoundRender()
 {
     $path = base_path('tests/storage/logs/report.log');
     \Log::useFiles($path);
     $exception = new \Illuminate\Database\Eloquent\ModelNotFoundException();
     $exception->setModel('Testing');
     $response = $this->handler->render($this->app['request'], $exception);
     $this->assertSame(404, $response->getStatusCode());
     $this->beforeApplicationDestroyed(function () use($path) {
         \File::delete($path);
     });
 }
 /**
  * Get a CouchDB collection.
  *
  * @param string $name
  *
  * @return CouchDB
  */
 public function getCollection($name)
 {
     try {
         $document = $this->dm->getRepository($name);
         return $document;
     } catch (\Doctrine\ODM\CouchDB\Mapping\MappingException $e) {
         $exception = new \Illuminate\Database\Eloquent\ModelNotFoundException();
         $exception->setModel($name);
         throw $exception;
     }
 }