Skip to content

Commit 3178898

Browse files
peter279klaravel-ide-helper
andauthored
Test enhancement (#1100)
* Improve PHPUnit assertions * composer fix-style Co-authored-by: laravel-ide-helper <[email protected]>
1 parent ca0cf73 commit 3178898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/MethodTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testOutput()
5151
$this->assertSame(['$last', '$first', '...$middle'], $method->getParams(false));
5252
$this->assertSame('$last, $first = \'Barry\', ...$middle', $method->getParamsWithDefault(true));
5353
$this->assertSame(['$last', '$first = \'Barry\'', '...$middle'], $method->getParamsWithDefault(false));
54-
$this->assertSame(true, $method->shouldReturn());
54+
$this->assertTrue($method->shouldReturn());
5555
}
5656

5757
/**
@@ -85,7 +85,7 @@ public function testEloquentBuilderOutput()
8585
$this->assertSame(['$relations', '$callback'], $method->getParams(false));
8686
$this->assertSame('$relations, $callback = null', $method->getParamsWithDefault(true));
8787
$this->assertSame(['$relations', '$callback = null'], $method->getParamsWithDefault(false));
88-
$this->assertSame(true, $method->shouldReturn());
88+
$this->assertTrue($method->shouldReturn());
8989
}
9090

9191
/**

0 commit comments

Comments
 (0)