@@ 72-82 (lines=11) @@ | ||
69 | /** |
|
70 | * @test |
|
71 | */ |
|
72 | public function shouldReturnName() |
|
73 | { |
|
74 | //given |
|
75 | $node = new Node('int', '$age', false); |
|
76 | ||
77 | //when |
|
78 | $name = $node->getName(); |
|
79 | ||
80 | //then |
|
81 | $this->assertEquals('$age', $name); |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * @test |
|
@@ 87-97 (lines=11) @@ | ||
84 | /** |
|
85 | * @test |
|
86 | */ |
|
87 | public function shouldGetSanitizedName() |
|
88 | { |
|
89 | //given |
|
90 | $node = new Node('int', '$age', false); |
|
91 | ||
92 | //when |
|
93 | $name = $node->getSanitizedName(); |
|
94 | ||
95 | //then |
|
96 | $this->assertEquals('age', $name); |
|
97 | } |
|
98 | ||
99 | /** |
|
100 | * @test |