Skip to content
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

Merged
merged 1 commit into from
Oct 31, 2020
Merged

Conversation

pablo-bossi
Copy link
Contributor

@pablo-bossi pablo-bossi commented May 22, 2020

Update dependencies and tests for Laravel 6 support

@@ -11,13 +11,13 @@
]
},
"require": {
"laravel/framework": "~5.3"
"laravel/framework": "~6.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support for Laravel 6

"mockery/mockery": "1.3.*",
"orchestra/testbench": "4.*",
"phpunit/phpunit": "~8.0",
"php-coveralls/php-coveralls": "2.2.*",
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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

Comment on lines +17 to +19
"mockery/mockery": "1.3.*",
"orchestra/testbench": "4.*",
"phpunit/phpunit": "~8.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update dependencies to meet Laravel 6 needs

@@ -7,8 +7,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntaxCheck is unrecognized on phpUnit 8

@@ -26,7 +26,7 @@ public function format(JsonResponse $response, Exception $e, array $reporterResp

class ExceptionHandlerTest extends TestCase {

public function setUp()
public function setUp() :void
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Match declaration of TestCase with PHPUnit 8

Comment on lines +127 to +129
$this->expectException(\InvalidArgumentException::class);

$this->expectExceptionMessage('invalid: stdClass is not a valid reporter class.');
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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

Comment on lines -159 to -165
$this->setExpectedException(
\InvalidArgumentException::class,
sprintf(
"% is not a valid formatter class.",
get_class($formatter)
)
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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

@@ -7,7 +7,7 @@
class ExceptionFormatterTest extends TestCase
{

public function setUp()
public function setUp() :void
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Match setUp declaration for phpUnit 8

@@ -11,16 +11,16 @@ class BugsnagReporterTest extends TestCase

protected $client;

public function setUp()
public function setUp() :void
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Match setUp declaration for phpUnit 8

@pablo-bossi pablo-bossi marked this pull request as ready for review May 22, 2020 15:16
@esbenp
Copy link
Owner

esbenp commented Oct 31, 2020

Thanks @pablo-bossi !

@esbenp esbenp merged commit 3671e10 into esbenp:master Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants