updated phpunit

This commit is contained in:
Taras Machyshyn
2014-03-05 13:32:47 +02:00
parent 97cdaf377c
commit a9af3dcf41
17 changed files with 31 additions and 18 deletions
@@ -331,7 +331,7 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report
$popoverContent = '';
$popoverTitle = '';
if (!isset($ignoredLines[$i]) && isset($coverageData[$i])) {
if (!isset($ignoredLines[$i]) && array_key_exists($i, $coverageData)) {
$numTests = count($coverageData[$i]);
if ($coverageData[$i] === NULL) {
@@ -135,7 +135,7 @@ abstract class PHP_CodeCoverage_Report_Node implements Countable
public function getPath()
{
if ($this->path === NULL) {
if ($this->parent === NULL) {
if ($this->parent === NULL || $this->parent->getPath() == NULL) {
$this->path = $this->name;
} else {
$this->path = $this->parent->getPath() . '/' . $this->name;
@@ -44,7 +44,7 @@
*/
/**
*
*
*
* @category PHP
* @package CodeCoverage
@@ -56,7 +56,7 @@
*/
class PHP_CodeCoverage_Version
{
const VERSION = '1.2.15';
const VERSION = '1.2.16';
protected static $version;
/**
@@ -72,7 +72,7 @@ class PHP_CodeCoverage_Version
if (is_dir(dirname(dirname(__DIR__)) . '/.git')) {
$dir = getcwd();
chdir(__DIR__);
$version = exec('git describe --tags');
$version = @exec('git describe --tags');
chdir($dir);
if ($version) {