Skip to content

Commit 98de3bf

Browse files
committed
tests: ignore some phpunit notices
1 parent f7b7362 commit 98de3bf

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

tests/Parser/ClassVisitor/MethodClassVisitorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class MethodClassVisitorTest extends TestCase
2121
{
22-
22+
#[\PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations]
2323
public function testAddsMethods(): void
2424
{
2525
$class = $this->getMockBuilder(ClassReflection::class)

tests/Parser/ClassVisitor/PropertyClassVisitorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
class PropertyClassVisitorTest extends TestCase
2222
{
2323

24+
#[\PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations]
2425
public function testAddsProperties(): void
2526
{
2627
$class = $this->getMockBuilder(ClassReflection::class)

tests/Parser/ProjectTraverserTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class ProjectTraverserTest extends TestCase
2727
* @dataProvider getTraverseOrderClasses
2828
*/
2929
#[\PHPUnit\Framework\Attributes\DataProvider('getTraverseOrderClasses')]
30+
#[\PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations]
3031
public function testTraverseOrder(
3132
string $interfaceName,
3233
string $parentName,

0 commit comments

Comments
 (0)