mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
Test enhancement (#1100)
* Improve PHPUnit assertions * composer fix-style Co-authored-by: laravel-ide-helper <[email protected]>
This commit is contained in:
co-authored by
laravel-ide-helper
parent
ca0cf7355a
commit
317889805b
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user