예제 #1
0
 protected function assertConfiguration(Configuration $config, $srcDir, array $cloverXml, $jsonPath, $excludeNoStatements = false)
 {
     $this->assertEquals($srcDir, $config->getSrcDir());
     $this->assertEquals($cloverXml, $config->getCloverXmlPaths());
     $this->assertEquals($jsonPath, $config->getJsonPath());
     $this->assertEquals($excludeNoStatements, $config->isExcludeNoStatements());
 }
예제 #2
0
 /**
  * Dump submitting json file.
  *
  * @return \Satooshi\Bundle\CoverallsV1Bundle\Repository\JobsRepository
  */
 protected function dumpJsonFile()
 {
     $jsonPath = $this->config->getJsonPath();
     $this->logger->info(sprintf('Dump submitting json file: %s', $jsonPath));
     $this->api->dumpJsonFile();
     $filesize = number_format(filesize($jsonPath) / 1024, 2);
     // kB
     $this->logger->info(sprintf('File size: <info>%s</info> kB', $filesize));
     return $this;
 }