From 317889805b918bb7cbc59545e9edc7da62196296 Mon Sep 17 00:00:00 2001 From: "Chun-Sheng, Li" Date: Mon, 30 Nov 2020 22:33:15 +0800 Subject: [PATCH] Test enhancement (#1100) * Improve PHPUnit assertions * composer fix-style Co-authored-by: laravel-ide-helper --- tests/MethodTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/MethodTest.php b/tests/MethodTest.php index 6285bc8..b921559 100644 --- a/tests/MethodTest.php +++ b/tests/MethodTest.php @@ -51,7 +51,7 @@ DOC; $this->assertSame(['$last', '$first', '...$middle'], $method->getParams(false)); $this->assertSame('$last, $first = \'Barry\', ...$middle', $method->getParamsWithDefault(true)); $this->assertSame(['$last', '$first = \'Barry\'', '...$middle'], $method->getParamsWithDefault(false)); - $this->assertSame(true, $method->shouldReturn()); + $this->assertTrue($method->shouldReturn()); } /** @@ -85,7 +85,7 @@ DOC; $this->assertSame(['$relations', '$callback'], $method->getParams(false)); $this->assertSame('$relations, $callback = null', $method->getParamsWithDefault(true)); $this->assertSame(['$relations', '$callback = null'], $method->getParamsWithDefault(false)); - $this->assertSame(true, $method->shouldReturn()); + $this->assertTrue($method->shouldReturn()); } /**