OutputTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testWrite() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
namespace SlayerBirden\DFCodeGeneration\Writer;
5
6
use PHPUnit\Framework\TestCase;
7
use Prophecy\Argument;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
class OutputTest extends TestCase
11
{
12
    public function testWrite()
13
    {
14
        $output = $this->prophesize(OutputInterface::class);
15
16
        $writer = new OutputWriter($output->reveal());
17
        $writer->write('hello', 'testfile');
18
19
        $output->writeln(Argument::exact('hello'))->shouldHaveBeenCalled();
20
    }
21
}
22