Open tenzap opened 1 month ago
Suggested patch for the 1st error:
--- a/tests/DataType/DateTest.php
+++ b/tests/DataType/DateTest.php
@@ -12,7 +12,7 @@
* @return array
* @see testParseIso
*/
- function provideDates()
+ static function provideDates()
{
return [
// full datetime, different formats
@@ -44,10 +44,10 @@
* @param mixed $input
* @param int $expect
*/
- function testParseIso($input, $expect)
+ static function testParseIso($input, $expect)
{
$dt = new Date($input);
- $this->assertEquals($expect, $dt->getTimeStamp());
+ self::assertEquals($expect, $dt->getTimeStamp());
}
}
--- a/tests/Message/MessageTest.php
+++ b/tests/Message/MessageTest.php
@@ -5,7 +5,7 @@
use IXR\Message\Message;
use PHPUnit\Framework\TestCase;
-class ixr_library_ixr_message_test extends TestCase
+class MessageTest extends TestCase
{
function testUntypedValue()
This change still works with phpunit 9
While trying to run the phpunit tests with phpunit11 there errors/warnings are reported. It also mentions a deprecation warning for phpunit12
Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070558