Skip to content

Commit

Permalink
Test enhancement (#1100)
Browse files Browse the repository at this point in the history
* Improve PHPUnit assertions

* composer fix-style

Co-authored-by: laravel-ide-helper <laravel-ide-helper@users.noreply.github.com>
  • Loading branch information
peter279k and laravel-ide-helper authored Nov 30, 2020
1 parent ca0cf73 commit 3178898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/MethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testOutput()
$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());
}

/**
Expand Down Expand Up @@ -85,7 +85,7 @@ public function testEloquentBuilderOutput()
$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());
}

/**
Expand Down

0 comments on commit 3178898

Please sign in to comment.