Skip to content

Commit

Permalink
Adapt previous tests, add one-liner for non-anonymous classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored and sebastianbergmann committed Nov 21, 2023
1 parent 2bc4f7c commit a2a845d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions tests/_files/source_for_branched_exec_lines.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,12 @@ final class MyFinalClass extends MyAbstractClass
'foo' => 'bar',
];
private string $var;
public function myMethod(): void
public function m1(): void {} // +4
public function m2(): void {
} // +1
public function m3(): void
{} // +1
public function m4(): void
{
} // +4
} // +1
}
2 changes: 1 addition & 1 deletion tests/_files/source_for_branched_exec_lines_php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function neverReturn(): never;
class NewInInit_NoInit
{
public function __construct(private DateTimeInterface $dateTime) {
} // +1
} // +3
public function noinit(DateTimeInterface $dateTime) {
} // +1
}
Expand Down

0 comments on commit a2a845d

Please sign in to comment.