test_it_renders_with_custom_name()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php namespace Tarsana\Command\Examples\Tests;
2
3
use Tarsana\Command\Examples\RenderCommand;
4
use Tarsana\Tester\CommandTestCase;
5
6
7
class RenderCommandTest extends CommandTestCase {
8
9
    public function test_it_renders_the_template()
10
    {
11
        $this->command(new RenderCommand)
12
             ->printsExactly("Hello You<br>");
13
    }
14
15
    public function test_it_renders_with_custom_name()
16
    {
17
        $this->command(new RenderCommand, ['Foo'])
18
             ->printsExactly("Hello Foo<br>");
19
    }
20
}
21