-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dependencies) Add Laravel 6 support #31
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,13 @@ | |
] | ||
}, | ||
"require": { | ||
"laravel/framework": "~5.3" | ||
"laravel/framework": "~6.0" | ||
}, | ||
"require-dev": { | ||
"mockery/mockery": "0.9.*", | ||
"orchestra/testbench": "~3.1", | ||
"phpunit/phpunit": "~4.7", | ||
"satooshi/php-coveralls": "dev-master@dev", | ||
"mockery/mockery": "1.3.*", | ||
"orchestra/testbench": "4.*", | ||
"phpunit/phpunit": "~8.0", | ||
Comment on lines
+17
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update dependencies to meet Laravel 6 needs |
||
"php-coveralls/php-coveralls": "2.2.*", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. satooshi/php-coveralls is depreceted so replaced by the suggested replacement which worked out fine |
||
"bugsnag/bugsnag-laravel": "^2.4" | ||
}, | ||
"suggest": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,7 @@ | |
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. syntaxCheck is unrecognized on phpUnit 8 |
||
stopOnFailure="false"> | ||
<logging> | ||
<log type="coverage-clover" target="build/logs/clover.xml"/> | ||
</logging> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ public function format(JsonResponse $response, Exception $e, array $reporterResp | |
|
||
class ExceptionHandlerTest extends TestCase { | ||
|
||
public function setUp() | ||
public function setUp() :void | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Match declaration of TestCase with PHPUnit 8 |
||
{ | ||
parent::setUp(); | ||
|
||
|
@@ -124,10 +124,9 @@ public function testReportInvalidReporterClass() | |
|
||
$property->setValue($handler, $config); | ||
|
||
$this->setExpectedException( | ||
\InvalidArgumentException::class, | ||
'invalid: stdClass is not a valid reporter class.' | ||
); | ||
$this->expectException(\InvalidArgumentException::class); | ||
|
||
$this->expectExceptionMessage('invalid: stdClass is not a valid reporter class.'); | ||
Comment on lines
+127
to
+129
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. setExpectedException is no longer supported on phpUnit 8, so replaced by the equivalent code |
||
|
||
$reflectionHandler->getMethod('report') | ||
->invoke($handler, $exception); | ||
|
@@ -156,13 +155,11 @@ public function testInvalidFormatterClass() | |
|
||
$property->setValue($handler, $config); | ||
|
||
$this->setExpectedException( | ||
\InvalidArgumentException::class, | ||
sprintf( | ||
"% is not a valid formatter class.", | ||
get_class($formatter) | ||
) | ||
); | ||
Comment on lines
-159
to
-165
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. setExpectedException is no longer supported in phpUnit 8, so replaced by equivalent code |
||
$this->expectException(\InvalidArgumentException::class); | ||
|
||
$exceptionMessage = sprintf("% is not a valid formatter class.", get_class($formatter)); | ||
|
||
$this->expectExceptionMessage($exceptionMessage); | ||
|
||
$method = $reflectionHandler->getMethod('generateExceptionResponse'); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
class ExceptionFormatterTest extends TestCase | ||
{ | ||
|
||
public function setUp() | ||
public function setUp() :void | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Match setUp declaration for phpUnit 8 |
||
{ | ||
parent::setUp(); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,16 @@ class BugsnagReporterTest extends TestCase | |
|
||
protected $client; | ||
|
||
public function setUp() | ||
public function setUp() :void | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Match setUp declaration for phpUnit 8 |
||
{ | ||
parent::setUp(); | ||
|
||
$this->client = $this->getMockBuilder(stdClass::class) | ||
->setMethods(['notifyException']) | ||
->getMock(); | ||
|
||
$this->app->instance(Client::class, $this->client); | ||
|
||
$this->bugsnagReporter = new BugsnagReporter([]); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support for Laravel 6