-
Notifications
You must be signed in to change notification settings - Fork 61
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
API phpunit9 support #409
API phpunit9 support #409
Conversation
50d4474
to
cfcab57
Compare
9e2410c
to
cd1912a
Compare
composer.json
Outdated
@@ -17,8 +17,7 @@ | |||
"dnadesign/silverstripe-elemental": "<4.6" | |||
}, | |||
"require-dev": { | |||
"sminnee/phpunit": "^5.7", | |||
"sminnee/phpunit-mock-objects": "^3.4.5", | |||
"phpunit/phpunit": "^9", |
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.
"phpunit/phpunit": "^9", | |
"phpunit/phpunit": "^9.5", |
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.
Updated
@@ -268,7 +269,11 @@ public function testExtractKeys() | |||
$result = StaticSchema::inst()->extractKeys(['Foo', 'NotExists'], $arr); | |||
$this->assertEquals(['test1', null], $result); | |||
|
|||
$this->expectException(\PHPUnit_Framework_Error::class); | |||
if (PHP_VERSION_ID < 80000) { | |||
$this->expectNotice(); |
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.
$this->expectNotice(); | |
$this->expectNotice('StaticSchema throws notice when extracting on non-existent key on PHP 7'); |
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.
Updated
if (PHP_VERSION_ID < 80000) { | ||
$this->expectNotice(); | ||
} else { | ||
$this->expectWarning(); |
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.
$this->expectWarning(); | |
$this->expectWarning('StaticSchema throws warning when extracting on non-existent key on PHP 8'); |
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.
Updated
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.
I think you forgot to push your changes #409
cd1912a
to
55b598d
Compare
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.
LGTM
Issue silverstripe/silverstripe-framework#10019