Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class VueDirectiveTest extends TestCase |
||
11 | { |
||
12 | /** |
||
13 | * @test |
||
14 | */ |
||
15 | public function basicStartDirectiveReturnsCorrectPhpBlock() |
||
22 | ); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @test |
||
27 | */ |
||
28 | public function basicEndDirectiveReturnsCorrectPhpBlock() |
||
29 | { |
||
30 | $code = Basic::end(); |
||
31 | |||
32 | $this->assertEquals( |
||
33 | '</div><?php echo \Jhoff\BladeVue\Components\Basic::end(); ?>', |
||
34 | $code |
||
35 | ); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @test |
||
40 | */ |
||
41 | public function inlineStartDirectiveReturnsCorrectPhpBlock() |
||
42 | { |
||
43 | $code = Inline::start('"component", ["foo" => "bar"]'); |
||
44 | |||
45 | $this->assertEquals( |
||
46 | '<?php echo \Jhoff\BladeVue\Components\Inline::start("component", ["foo" => "bar"]); ?><div>', |
||
47 | $code |
||
48 | ); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @test |
||
53 | */ |
||
54 | public function inlineEndDirectiveReturnsCorrectPhpBlock() |
||
61 | ); |
||
62 | } |
||
63 | } |
||
64 |