#1387 [phploc] Fixed broken task for PHP >= 7.3

Merged Siad Ardroumli siad007 Pseudo commit used to compare (d7ca56f...2ef28b4)
Coverage Reach
tasks/ext/git/GitTagTask.php tasks/ext/git/GitPullTask.php tasks/ext/git/GitBranchTask.php tasks/ext/git/GitFetchTask.php tasks/ext/git/GitPushTask.php tasks/ext/git/GitLogTask.php tasks/ext/git/GitMergeTask.php tasks/ext/git/GitCheckoutTask.php tasks/ext/git/GitDescribeTask.php tasks/ext/git/GitCloneTask.php tasks/ext/git/GitCommitTask.php tasks/ext/git/GitGcTask.php tasks/ext/git/GitArchiveTask.php tasks/ext/git/GitBaseTask.php tasks/ext/git/GitInitTask.php tasks/ext/phpunit/formatter7/PHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/PlainPHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/XMLPHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/Crap4JPHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/CloverPHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/SummaryPHPUnitResultFormatter7.php tasks/ext/phpunit/PHPUnitTask.php tasks/ext/phpunit/JUnit.php tasks/ext/phpunit/PHPUnitTestRunner7.php tasks/ext/phpunit/PHPUnitTestRunner8.php tasks/ext/phpunit/PHPUnitReportTask.php tasks/ext/phpunit/FormatterElement.php tasks/ext/phpunit/PHPUnitUtil.php tasks/ext/phpunit/BatchTest.php tasks/ext/pdo/PDOSQLExecTask.php tasks/ext/pdo/PgsqlPDOQuerySplitter.php tasks/ext/pdo/PDOSQLExecFormatterElement.php tasks/ext/pdo/DefaultPDOQuerySplitter.php tasks/ext/pdo/PDOTask.php tasks/ext/pdo/PlainPDOResultFormatter.php tasks/ext/pdo/XMLPDOResultFormatter.php tasks/ext/pdo/PDOSQLExecTransaction.php tasks/ext/pdo/DummyPDOQuerySplitter.php tasks/ext/pdo/PDOResultFormatter.php tasks/ext/pdo/PDOQuerySplitter.php tasks/ext/hg/HgAddTask.php tasks/ext/hg/HgTagTask.php tasks/ext/hg/HgLogTask.php tasks/ext/hg/HgCommitTask.php tasks/ext/hg/HgUpdateTask.php tasks/ext/hg/HgCloneTask.php tasks/ext/hg/HgRevertTask.php tasks/ext/hg/HgPushTask.php tasks/ext/hg/HgBaseTask.php tasks/ext/hg/HgInitTask.php tasks/ext/hg/HgPullTask.php tasks/ext/hg/HgArchiveTask.php tasks/ext/property/Variable.php tasks/ext/property/RegexTask.php tasks/ext/property/PathToFileSet.php tasks/ext/property/PropertySelector.php tasks/ext/property/SortList.php tasks/ext/property/URLEncodeTask.php tasks/ext/property/PropertyCopy.php tasks/ext/property/AbstractPropertySetterTask.php tasks/ext/sass/SassTask.php tasks/ext/sass/SassTaskCompilerFactory.php tasks/ext/sass/ScssPhpCompiler.php tasks/ext/sass/SassCompiler.php tasks/ext/svn/SvnBaseTask.php tasks/ext/svn/SvnListTask.php tasks/ext/svn/SvnInfoTask.php tasks/ext/svn/SvnLogTask.php tasks/ext/svn/SvnLastRevisionTask.php tasks/ext/svn/SvnCommitTask.php tasks/ext/svn/SvnPropgetTask.php tasks/ext/svn/SvnProplistTask.php tasks/ext/svn/SvnPropsetTask.php tasks/ext/svn/SvnCopyTask.php tasks/ext/svn/SvnSwitchTask.php tasks/ext/svn/SvnExportTask.php tasks/ext/svn/SvnCheckoutTask.php tasks/ext/svn/SvnUpdateTask.php tasks/ext/svn/SvnRevertTask.php tasks/ext/inifile/IniFileTask.php tasks/ext/inifile/IniFileConfig.php tasks/ext/inifile/IniFileSet.php tasks/ext/inifile/IniFileGet.php tasks/ext/inifile/IniFileRemove.php tasks/ext/zendguard/ZendGuardLicenseTask.php tasks/ext/zendguard/ZendGuardEncodeTask.php tasks/ext/zendguard/ZendGuardFileSet.php tasks/ext/sonar/SonarTask.php tasks/ext/sonar/SonarConfigurationFileParser.php tasks/ext/sonar/SonarProperty.php tasks/ext/phar/PharPackageTask.php tasks/ext/phar/PharDataTask.php tasks/ext/phar/PharMetadataElement.php tasks/ext/phar/PharMetadata.php tasks/ext/pdepend/PhpDependTask.php tasks/ext/pdepend/PhpDependAnalyzerElement.php tasks/ext/pdepend/PhpDependLoggerElement.php tasks/ext/Service/Amazon/S3/S3PutTask.php tasks/ext/Service/Amazon/S3/S3GetTask.php tasks/ext/Service/Amazon/S3.php tasks/ext/Service/Amazon.php tasks/ext/phpstan/PHPStanTask.php tasks/ext/phpstan/CommandBuilder/PHPStanAnalyseCommandBuilder.php tasks/ext/phpstan/CommandBuilder/PHPStanCommandBuilder.php tasks/ext/phpstan/CommandBuilder/PHPStanCommandBuilderFactory.php tasks/ext/phpstan/CommandBuilder/PHPStanHelpCommandBuilder.php tasks/ext/phpstan/CommandBuilder/PHPStanListCommandBuilder.php tasks/ext/phploc/PHPLocTask.php tasks/ext/phploc/PHPLocFormatterFactory.php tasks/ext/phploc/PHPLocFormatterElement.php tasks/ext/phploc/AbstractPHPLocFormatter.php tasks/ext/phploc/PHPLocTextFormatter.php tasks/ext/phploc/PHPLocCSVFormatter.php tasks/ext/phploc/PHPLocXMLFormatter.php tasks/ext/phploc/PHPLocJSONFormatter.php tasks/ext/GrowlNotifyTask.php tasks/ext/phpcpd/PHPCPDTask.php tasks/ext/phpcpd/formatter/DefaultPHPCPDResultFormatter.php tasks/ext/phpcpd/formatter/PMDPHPCPDResultFormatter.php tasks/ext/phpcpd/PHPCPDFormatterElement.php tasks/ext/dbdeploy/DbDeployTask.php tasks/ext/dbdeploy/DbmsSyntaxFactory.php tasks/ext/dbdeploy/DbmsSyntaxOracle.php tasks/ext/dbdeploy/DbmsSyntaxMysql.php tasks/ext/dbdeploy/DbmsSyntaxMsSql.php tasks/ext/dbdeploy/DbmsSyntaxSQLite.php tasks/ext/dbdeploy/DbmsSyntaxPgSQL.php tasks/ext/dbdeploy/DbmsSyntax.php tasks/ext/phpmd/PHPMDTask.php tasks/ext/phpmd/PHPMDFormatterElement.php tasks/ext/phpmd/PHPMDRendererRemoveFromCache.php tasks/ext/visualizer/VisualizerTask.php tasks/ext/PearPackage2Task.php tasks/ext/FileSyncTask.php tasks/ext/RSTTask.php tasks/ext/JslLintTask.php tasks/ext/WikiPublishTask.php tasks/ext/TarTask.php tasks/ext/VersionTask.php tasks/ext/ZipTask.php tasks/ext/SymlinkTask.php tasks/ext/pearpackage/PEARPackageFileManagerFileset.php tasks/ext/PhpLintTask.php tasks/ext/ManifestTask.php tasks/ext/PearPackageTask.php tasks/ext/SymfonyConsole/SymfonyConsoleTask.php tasks/ext/SymfonyConsole/Arg.php tasks/ext/PatchTask.php tasks/ext/ExtractBaseTask.php tasks/ext/hipchat/HipchatTask.php tasks/ext/ReplaceRegexpTask.php tasks/ext/MailTask.php tasks/ext/XmlLintTask.php tasks/ext/NotifySendTask.php tasks/ext/HttpGetTask.php tasks/ext/FileHashTask.php tasks/ext/HttpTask.php tasks/ext/PhpCSTask.php tasks/ext/StopwatchTask.php tasks/ext/ComposerTask.php tasks/ext/TarFileSet.php tasks/ext/HttpRequestTask.php tasks/ext/XmlPropertyTask.php tasks/ext/UntarTask.php tasks/ext/FileSizeTask.php tasks/ext/UnzipTask.php tasks/ext/ZipFileSet.php tasks/ext/ParallelTask.php tasks/ext/PearPkgMappingElement.php tasks/ext/JsonValidateTask.php tasks/ext/PearPkgMapping.php tasks/ext/AutoloaderTask.php tasks/ext/PearPkgOption.php tasks/ext/ThrowTask.php tasks/ext/PearPkgRole.php tasks/ext/PackageAsPathTask.php tasks/system/condition/ConditionBase.php tasks/system/condition/PhingVersion.php tasks/system/condition/HttpCondition.php tasks/system/condition/HasFreeSpaceCondition.php tasks/system/condition/VersionCompareCondition.php tasks/system/condition/OsCondition.php tasks/system/condition/Matches.php tasks/system/condition/IsFileSelected.php tasks/system/condition/EqualsCondition.php tasks/system/condition/ConditionEnumeration.php tasks/system/condition/ContainsCondition.php tasks/system/condition/SocketCondition.php tasks/system/condition/FilesMatch.php tasks/system/condition/ReferenceExistsCondition.php tasks/system/condition/IsSetCondition.php tasks/system/condition/IsFailure.php tasks/system/condition/NotCondition.php tasks/system/condition/IsPropertyTrueCondition.php tasks/system/condition/IsPropertyFalseCondition.php tasks/system/condition/XorCondition.php tasks/system/condition/IsTrueCondition.php tasks/system/condition/IsFalseCondition.php tasks/system/condition/NestedCondition.php tasks/system/condition/AndCondition.php tasks/system/condition/OrCondition.php tasks/system/ApplyTask.php tasks/system/PhingTask.php tasks/system/CopyTask.php tasks/system/ExecTask.php tasks/system/PropertyTask.php tasks/system/SubPhing.php tasks/system/AppendTask.php tasks/system/ForeachTask.php tasks/system/DeleteTask.php tasks/system/PathConvert.php tasks/system/EchoProperties.php tasks/system/MoveTask.php tasks/system/DependSet.php tasks/system/RecorderEntry.php tasks/system/UpToDateTask.php tasks/system/MatchingTask.php tasks/system/TouchTask.php tasks/system/AvailableTask.php tasks/system/PhpEvalTask.php tasks/system/ChownTask.php tasks/system/ChmodTask.php tasks/system/EchoTask.php tasks/system/FailTask.php tasks/system/RecorderTask.php tasks/system/ImportTask.php tasks/system/AttribTask.php tasks/system/LoadFileTask.php tasks/system/WaitForTask.php tasks/system/TruncateTask.php tasks/system/AppendTask/TextElement.php tasks/system/ReflexiveTask.php tasks/system/InputTask.php tasks/system/PhingCallTask.php tasks/system/Retry.php tasks/system/TstampTask.php tasks/system/IncludePathTask.php tasks/system/SleepTask.php tasks/system/TempFile.php tasks/system/AugmentReference.php tasks/system/IfTask.php tasks/system/SwitchTask.php tasks/system/Relentless.php tasks/system/TryCatchTask.php tasks/system/TstampCustomFormat.php tasks/system/DefaultExcludes.php tasks/system/ConditionTask.php tasks/system/TaskdefTask.php tasks/system/element/LogLevelAware.php tasks/system/MkdirTask.php tasks/system/XsltTask.php tasks/system/MapEntry.php tasks/system/EchoXML.php tasks/system/AdhocTaskdefTask.php tasks/system/ResolvePathTask.php tasks/system/Basename.php tasks/system/AdhocTypedefTask.php tasks/system/ElseIfTask.php tasks/system/AdhocTask.php tasks/system/Dirname.php tasks/system/TypedefTask.php tasks/system/DynamicTask.php tasks/system/CaseTask.php tasks/system/BlockForTask.php tasks/system/RunTargetTask.php tasks/system/SequentialTask.php tasks/system/PhingReference.php tasks/system/DiagnosticsTask.php tasks/system/WarnTask.php types/selectors/SizeSelector.php types/selectors/DateSelector.php types/selectors/ContainsSelector.php types/selectors/SelectorUtils.php types/selectors/FilenameSelector.php types/selectors/ContainsRegexpSelector.php types/selectors/SelectorAware.php types/selectors/DepthSelector.php types/selectors/AbstractSelectorContainer.php types/selectors/PresentSelector.php types/selectors/DependSelector.php types/selectors/MappingSelector.php types/selectors/TypeSelector.php types/selectors/ExtendSelector.php types/selectors/PosixPermissionsSelector.php types/selectors/MajoritySelector.php types/selectors/SelectSelector.php types/selectors/DifferentSelector.php types/selectors/NoneSelector.php types/selectors/AndSelector.php types/selectors/OrSelector.php types/selectors/BaseSelector.php types/selectors/BaseSelectorContainer.php types/selectors/NotSelector.php types/selectors/BaseExtendSelector.php types/selectors/ReadableSelector.php types/selectors/SymlinkSelector.php types/selectors/WritableSelector.php types/selectors/ExecutableSelector.php types/AbstractFileSet.php types/Path.php types/PatternSet.php types/Commandline.php types/Mapper.php types/FileList.php types/FilterChain.php types/PhingFilterReader.php types/DataType.php types/Excludes.php types/PearPackageFileSet.php types/RegularExpression.php types/element/ClasspathAware.php types/element/DirSetAware.php types/element/FileListAware.php types/element/FilterChainAware.php types/element/FileSetAware.php types/PatternSetNameEntry.php types/TokenSource.php types/Parameter.php types/Description.php types/Reference.php types/environment/EnvVariable.php types/CommandlineMarker.php types/CommandlineArgument.php types/Environment.php types/PropertyValue.php types/ExcludesNameEntry.php types/PathElement.php types/FileSet.php types/TokenReader.php types/DirSet.php system/io/FileSystem.php system/io/WindowsFileSystem.php system/io/PhingFile.php system/io/UnixFileSystem.php system/io/InputStream.php system/io/BufferedReader.php system/io/XmlFileParser.php system/io/OutputStream.php system/io/YamlFileParser.php system/io/IniFileParser.php system/io/StringReader.php system/io/FileInputStream.php system/io/PrintStream.php system/io/InputStreamReader.php system/io/FileOutputStream.php system/io/FilterReader.php system/io/ConsoleReader.php system/io/BufferedWriter.php system/io/OutputStreamWriter.php system/io/FileParserFactory.php system/io/Reader.php system/io/FileReader.php system/io/FileWriter.php system/io/Writer.php system/util/Properties.php system/util/RegisterSlot.php system/util/Timer.php system/util/Register.php system/lang/EventObject.php system/lang/Character.php filters/ReplaceTokens.php filters/XsltFilter.php filters/ReplaceTokensWithFile.php filters/util/ChainReaderHelper.php filters/util/IniFileTokenReader.php filters/TranslateGettext.php filters/LineContainsRegexp.php filters/LineContains.php filters/ConcatFilter.php filters/TailFilter.php filters/XincludeFilter.php filters/StripLineComments.php filters/SuffixLines.php filters/HeadFilter.php filters/TidyFilter.php filters/IconvFilter.php filters/PrefixLines.php filters/SortFilter.php filters/PhpArrayMapLines.php filters/StripLineBreaks.php filters/BaseFilterReader.php filters/TabToSpaces.php filters/EscapeUnicode.php filters/ReplaceRegexp.php filters/StripWhitespace.php filters/StripPhpComments.php filters/XsltParam.php filters/ClassConstants.php filters/Token.php filters/ExpandProperties.php filters/BaseParamFilterReader.php filters/Comment.php filters/Contains.php listener/statistics/StatisticsReport.php listener/statistics/Table.php listener/statistics/Series.php listener/statistics/StatsTimer.php listener/statistics/SeriesTimer.php listener/statistics/TimerMap.php listener/statistics/StringFormatter.php listener/statistics/ProjectTimer.php listener/statistics/ProjectTimerMap.php listener/statistics/Duration.php listener/statistics/SeriesMap.php listener/statistics/TimeFormatter.php listener/statistics/DefaultClock.php listener/XmlLogger.php listener/DefaultLogger.php listener/HtmlColorLogger.php listener/ProgressLogger.php listener/MailLogger.php listener/AnsiColorLogger.php listener/StatisticsListener.php listener/MonologListener.php listener/JsonLogger.php listener/ProfileLogger.php listener/NoBannerLogger.php listener/TargetLogger.php listener/SilentLogger.php listener/TimestampedLogger.php util/DirectoryScanner.php util/FileUtils.php util/PearPackageScanner.php util/regexp/PregEngine.php util/regexp/Regexp.php util/SourceFileScanner.php util/ExtendedFileStream.php util/StringHelper.php util/DataStore.php util/PathTokenizer.php util/XMLFragment.php util/XMLChild.php util/LogWriter.php Phing.php parser/ProjectConfigurator.php parser/TargetHandler.php parser/ProjectHandler.php parser/ElementHandler.php parser/PhingXMLContext.php parser/ExpatParser.php parser/Location.php parser/AbstractHandler.php parser/RootHandler.php parser/AbstractSAXParser.php Project.php IntrospectionHelper.php ComponentHelper.php PropertyHelper.php mappers/GlobMapper.php mappers/RegexpMapper.php mappers/ContainerMapper.php mappers/CutDirsMapper.php mappers/ChainedMapper.php mappers/CompositeMapper.php mappers/MergeMapper.php mappers/FirstMatchMapper.php mappers/FlattenMapper.php mappers/IdentityMapper.php Target.php Task.php UnknownElement.php Diagnostics.php input/ConsoleInputHandler.php input/InputRequest.php input/MultipleChoiceInputRequest.php input/YesNoInputRequest.php input/NoInteractionInputHandler.php RuntimeConfigurable.php dispatch/DispatchUtils.php dispatch/DispatchTask.php BuildEvent.php BuildException.php TaskAdapter.php ProjectComponent.php ConfigurationException.php ExitStatusException.php ExtensionPoint.php

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.


@@ -39,16 +39,16 @@
Loading
39 39
40 40
        switch ($type) {
41 41
            case "xml":
42 -
                include_once 'phing/tasks/ext/phploc/PHPLocXMLFormatter.php';
43 42
                $formatter = new PHPLocXMLFormatter();
44 43
                break;
44 +
            case "json":
45 +
                $formatter = new PHPLocJSONFormatter();
46 +
                break;
45 47
            case "csv":
46 -
                include_once 'phing/tasks/ext/phploc/PHPLocCSVFormatter.php';
47 48
                $formatter = new PHPLocCSVFormatter();
48 49
                break;
49 50
            case "txt":
50 51
            case "cli":
51 -
                include_once 'phing/tasks/ext/phploc/PHPLocTextFormatter.php';
52 52
                $formatter = new PHPLocTextFormatter();
53 53
                break;
54 54
            default:

@@ -35,7 +35,7 @@
Loading
35 35
    /**
36 36
     * @var array
37 37
     */
38 -
    protected $acceptedReportTypes = ['cli', 'txt', 'xml', 'csv'];
38 +
    protected $acceptedReportTypes = ['cli', 'txt', 'xml', 'csv', 'json'];
39 39
40 40
    /**
41 41
     * @var null
@@ -302,10 +302,10 @@
Loading
302 302
303 303
        if (count($this->filesToCheck) > 0) {
304 304
            foreach ($this->filesToCheck as $file) {
305 -
                $files[] = new SplFileInfo($file);
305 +
                $files[] = (new SplFileInfo($file))->getRealPath();
306 306
            }
307 307
        } elseif ($this->fileToCheck !== null) {
308 -
            $files = [new SplFileInfo($this->fileToCheck)];
308 +
            $files = [(new SplFileInfo($this->fileToCheck))->getRealPath()];
309 309
        }
310 310
311 311
        return $files;

@@ -0,0 +1,35 @@
Loading
1 +
<?php
2 +
/**
3 +
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4 +
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5 +
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6 +
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7 +
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8 +
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9 +
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10 +
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11 +
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12 +
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13 +
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 +
 *
15 +
 * This software consists of voluntary contributions made by many individuals
16 +
 * and is licensed under the LGPL. For more information please see
17 +
 * <http://phing.info>.
18 +
 */
19 +
20 +
/**
21 +
 * @author Siad Ardroumli <siad.ardroumli@gmail.com>
22 +
 * @package phing.tasks.ext.phploc
23 +
 */
24 +
class PHPLocJSONFormatter extends AbstractPHPLocFormatter
25 +
{
26 +
    public function printResult(array $count, $countTests = false)
27 +
    {
28 +
        if (class_exists('\\SebastianBergmann\\PHPLOC\\Log\\Json')) {
29 +
            $printer = new SebastianBergmann\PHPLOC\Log\Json();
30 +
        } else {
31 +
            throw new BuildException('Not supported PHPLOC version used.');
32 +
        }
33 +
        $printer->printResult($this->getToDir() . DIRECTORY_SEPARATOR . $this->getOutfile(), $count);
34 +
    }
35 +
}

@@ -25,9 +25,7 @@
Loading
25 25
{
26 26
    public function printResult(array $count, $countTests = false)
27 27
    {
28 -
        if (class_exists('\\SebastianBergmann\\PHPLOC\\Log\\XML')) {
29 -
            $printer = new SebastianBergmann\PHPLOC\Log\XML();
30 -
        } elseif (class_exists('\\SebastianBergmann\\PHPLOC\\Log\\Xml')) {
28 +
        if (class_exists('\\SebastianBergmann\\PHPLOC\\Log\\Xml')) {
31 29
            $printer = new SebastianBergmann\PHPLOC\Log\Xml();
32 30
        } else {
33 31
            throw new BuildException('Not supported PHPLOC version used.');

@@ -25,17 +25,15 @@
Loading
25 25
{
26 26
    public function printResult(array $count, $countTests = false)
27 27
    {
28 +
        $printerClass = '\\SebastianBergmann\\PHPLOC\\Log\\Text';
29 +
        $printer = new $printerClass();
28 30
        if ($this->getUseFile()) {
29 -
            $outputClass = '\\Symfony\\Component\\Console\\Output\\StreamOutput';
30 -
            $stream = fopen($this->getToDir() . DIRECTORY_SEPARATOR . $this->getOutfile(), 'a+');
31 -
            $output = new $outputClass($stream);
31 +
            ob_start();
32 +
            $printer->printResult($count, $countTests);
33 +
            $output = ob_get_clean();
34 +
            file_put_contents($this->getToDir() . DIRECTORY_SEPARATOR . $this->getOutfile(), $output, FILE_APPEND);
32 35
        } else {
33 -
            $outputClass = '\\Symfony\\Component\\Console\\Output\\ConsoleOutput';
34 -
            $output = new $outputClass();
36 +
            $printer->printResult($count, $countTests);
35 37
        }
36 -
37 -
        $printerClass = '\\SebastianBergmann\\PHPLOC\\Log\\Text';
38 -
        $printer = new $printerClass();
39 -
        $printer->printResult($output, $count, $countTests);
40 38
    }
41 39
}

Learn more Showing 7 files with coverage changes found.

New file classes/phing/tasks/ext/phploc/PHPLocJSONFormatter.php
New
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocXMLFormatter.php
-1
+1
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocFormatterFactory.php
-7
+7
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocTask.php
-56
+56
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocCSVFormatter.php
-6
+5
Loading file...
Changes in classes/phing/tasks/ext/phploc/AbstractPHPLocFormatter.php
-16
+13
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocFormatterElement.php
-16
+16
Loading file...
Files Complexity Coverage
classes/phing ø 0.58% 53.07%
Project Totals (477 files) 9309 53.07%
Loading