Completed
Push — master ( dd8846...82fafa )
by Amine
03:04
created

test_it_renders_with_custom_name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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