Skip to content

Commit 3b879f0

Browse files
committed
Increase test coverage.
1 parent 463c24c commit 3b879f0

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

spec/loophp/phptree/Importer/MicrosoftTolerantPhpParserSpec.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function it_can_import(): void
3434
$this
3535
->import($ast)
3636
->count()
37-
->shouldReturn(112);
37+
->shouldReturn(117);
3838
}
3939

4040
public function it_is_initializable(): void

spec/loophp/phptree/Importer/NikicPhpAstSpec.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function it_can_import(): void
3030
$this
3131
->import($ast)
3232
->count()
33-
->shouldReturn(84);
33+
->shouldReturn(87);
3434
}
3535

3636
public function it_is_initializable(): void

spec/loophp/phptree/Importer/NikicPhpParserSpec.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function it_can_import(): void
4848
$this
4949
->import($ast)
5050
->count()
51-
->shouldReturn(104);
51+
->shouldReturn(109);
5252
}
5353

5454
public function it_is_initializable(): void

spec/loophp/phptree/Node/NodeSpec.php

+3
Original file line numberDiff line numberDiff line change
@@ -369,5 +369,8 @@ public function it_is_a_traversable(): void
369369
public function it_is_initializable(): void
370370
{
371371
$this->shouldHaveType(Node::class);
372+
$this
373+
->label()
374+
->shouldNotBeNull();
372375
}
373376
}

tests/sample.php

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
declare(strict_types=1);
44

5+
include __DIR__ . '/vendor/autoload.php';
6+
57
function foo($a)
68
{
79
return $a . $a;

0 commit comments

Comments
 (0)