• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JBZoo / CI-Report-Converter / 6282675101

03 Sep 2023 10:00PM UTC coverage: 94.375% (-0.007%) from 94.382%
6282675101

push

github

web-flow
Immutable jbzoo/data (#39)

3 of 3 new or added lines in 3 files covered. (100.0%)

1426 of 1511 relevant lines covered (94.37%)

28.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Formats/TeamCity/Writers/SymfonyConsole.php
1
<?php
2

3
/**
4
 * JBZoo Toolbox - CI-Report-Converter.
5
 *
6
 * This file is part of the JBZoo Toolbox project.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT
11
 * @copyright  Copyright (C) JBZoo.com, All rights reserved.
12
 * @see        https://github.com/JBZoo/CI-Report-Converter
13
 */
14

15
declare(strict_types=1);
16

17
namespace JBZoo\CIReportConverter\Formats\TeamCity\Writers;
18

19
use Symfony\Component\Console\Output\OutputInterface;
20

21
final class SymfonyConsole implements AbstractWriter
22
{
23
    private ?OutputInterface $output = null;
24

25
    public function write(?string $message): void
26
    {
27
        if ($this->output === null) {
×
28
            throw new Exception('Symfony OutputInterface endpoint is not set');
×
29
        }
30

31
        if ($message !== null) {
×
32
            $this->output->writeln($message);
×
33
        }
34
    }
35

36
    public function setCallback(OutputInterface $output): void
37
    {
38
        $this->output = $output;
×
39
    }
40
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc