Test enhancement (#1100)

* Improve PHPUnit assertions

* composer fix-style

Co-authored-by: laravel-ide-helper <[email protected]>
This commit is contained in:
Chun-Sheng, Li
2020-11-30 15:33:15 +01:00
committed by GitHub
co-authored by laravel-ide-helper
parent ca0cf7355a
commit 317889805b
+2 -2
View File
@@ -51,7 +51,7 @@ DOC;
$this->assertSame(['$last', '$first', '...$middle'], $method->getParams(false)); $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(true));
$this->assertSame(['$last', '$first = \'Barry\'', '...$middle'], $method->getParamsWithDefault(false)); $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'], $method->getParams(false));
$this->assertSame('$relations, $callback = null', $method->getParamsWithDefault(true)); $this->assertSame('$relations, $callback = null', $method->getParamsWithDefault(true));
$this->assertSame(['$relations', '$callback = null'], $method->getParamsWithDefault(false)); $this->assertSame(['$relations', '$callback = null'], $method->getParamsWithDefault(false));
$this->assertSame(true, $method->shouldReturn()); $this->assertTrue($method->shouldReturn());
} }
/** /**