/**
  * Start code coverage
  *
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function createAction()
 {
     if (!$this->driver) {
         return new Response('', 503);
         // Service Unavailable
     }
     if (!$this->repository->initialize()) {
         return new Response('', 500);
         // Internal Server Error
     }
     return new Response();
 }
 public function testInitialize()
 {
     $this->getMockFunction('file_exists', function () {
         return false;
     });
     \VIPSoft\CodeCoverageBundle\Test\SQLite3::$proxiedMethods['exec'] = function () {
         return null;
     };
     $repository = new CodeCoverageRepository($this->databaseConfig, $this->databaseDirectory, $this->sqlite);
     $this->assertTrue($repository->initialize());
 }