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

RenderCommandTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_it_renders_the_template() 0 5 1
A test_it_renders_with_custom_name() 0 5 1
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