mirror of
https://github.com/rlanvin/php-rrule.git
synced 2024-11-28 05:24:10 +01:00
Upgrade to PHPUnit 9
This commit is contained in:
parent
b4337c8935
commit
4274d19601
@ -32,7 +32,7 @@ Complete documentation and more examples are available in [the wiki](https://git
|
||||
|
||||
## Requirements
|
||||
|
||||
- PHP >= 5.6
|
||||
- PHP >= 7.3
|
||||
- [intl extension](http://php.net/manual/en/book.intl.php) is recommended for `humanReadable()` but not strictly required
|
||||
|
||||
## Installation
|
||||
|
@ -22,7 +22,7 @@
|
||||
}
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^8.0",
|
||||
"phpunit/phpunit": "^9.0",
|
||||
"phpmd/phpmd" : "@stable"
|
||||
}
|
||||
}
|
||||
|
@ -2245,8 +2245,12 @@ class RRuleTest extends TestCase
|
||||
*/
|
||||
public function testQuirkyRfcStringsParserNotice($str,$occurrences)
|
||||
{
|
||||
$this->expectException(\PHPUnit\Framework\Error\Notice::class);
|
||||
$rule = new RRule($str);
|
||||
try {
|
||||
$rule = new RRule($str);
|
||||
$this->fail("Expected an notice, didn't get one");
|
||||
} catch (\PHPUnit\Framework\Error\Notice $e) {
|
||||
$this->assertStringContainsString("This string is not compliant with the RFC (DTSTART cannot be part of RRULE).", $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -858,9 +858,12 @@ class RSetTest extends TestCase
|
||||
*/
|
||||
public function testParseQuirkyRfcStringNotice($string, $occurrences)
|
||||
{
|
||||
$this->expectException(\PHPUnit\Framework\Error\Notice::class);
|
||||
|
||||
$object = new RSet($string);
|
||||
try {
|
||||
$object = new RSet($string);
|
||||
$this->fail("Expected an notice, didn't get one");
|
||||
} catch (\PHPUnit\Framework\Error\Notice $e) {
|
||||
$this->assertStringContainsString("This string is not compliant with the RFC (DTSTART cannot be part of RRULE).", $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user