uncovered(); Container::reset(); if (!empty($uncovered)) { $this->writeWithColor('bg-red', sprintf("NOTICE: %s uncovered snippets!", count($uncovered))); if ($this->verbose) { $i = 0; foreach ($uncovered as $snippet) { $fqn = $snippet->fqn(); $type = (strpos($fqn, '::') !== false) ? 'Method' : 'Class'; $this->write("$i: $type example: {$snippet->fqn()}[{$snippet->index()}]"); $this->writeNewLine(); $this->write("Declared on or around {$snippet->file()}:{$snippet->line()}"); $this->writeNewLine(); $this->writeNewLine(); $i++; } } else { $this->write("Run command with `--verbose` flag to see uncovered snippets."); } if (extension_loaded('grpc')) { exit(1); } } } }