mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
More PHP 7 fixes
This commit is contained in:
parent
90b66241b3
commit
59358ec35b
2 changed files with 2 additions and 2 deletions
2
composer.lock
generated
2
composer.lock
generated
|
@ -1424,5 +1424,5 @@
|
||||||
"platform-overrides": {
|
"platform-overrides": {
|
||||||
"php": "7.1.33"
|
"php": "7.1.33"
|
||||||
},
|
},
|
||||||
"plugin-api-version": "2.2.0"
|
"plugin-api-version": "2.3.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ class TestContext extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
public function testSetContextOptions(string $method, array $input, $output, bool $not): void {
|
public function testSetContextOptions(string $method, array $input, $output, bool $not): void {
|
||||||
$parent = new Context;
|
$parent = new Context;
|
||||||
$c = ($not) ? $parent->not : $parent;
|
$c = ($not) ? $parent->not : $parent;
|
||||||
$default = (new \ReflectionProperty($c, $method))->getDefaultValue();
|
$default = (new \ReflectionClass($c))->getDefaultProperties()[$method];
|
||||||
$this->assertFalse($c->$method(), "Context method did not initially return false");
|
$this->assertFalse($c->$method(), "Context method did not initially return false");
|
||||||
if (in_array($method, $this->ranges)) {
|
if (in_array($method, $this->ranges)) {
|
||||||
$this->assertEquals([null, null], $c->$method, "Context property is not initially a two-member falsy array");
|
$this->assertEquals([null, null], $c->$method, "Context property is not initially a two-member falsy array");
|
||||||
|
|
Loading…
Reference in a new issue