Description: Add support for phpunit 10
  Apply the minimal changeset needed to support phpunit 10. Note that phpunit
  10 support has been added upstream since 1.3.71, therefore, this patch should
  be dropped once the package is upgraded.
Author: Athos Ribeiro <athoscribeiro@gmail.com>
Bug-Debian: https://bugs.debian.org/1039753
Forwarded: not-needed
Last-Update: 2023-07-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tests/css/CSSTest.php
+++ b/tests/css/CSSTest.php
@@ -14,7 +14,7 @@
     {
         // override save method, there's no point in writing the result out here
         return $this->getMockBuilder('\MatthiasMullie\Minify\CSS')
-            ->setMethods(array('save'))
+            ->onlyMethods(array('save'))
             ->getMock();
     }
 
@@ -100,7 +100,7 @@
     /**
      * @return array [input, expected result]
      */
-    public function dataProvider()
+    public static function dataProvider()
     {
         $tests = array();
 
@@ -849,7 +849,7 @@
     /**
      * @return array [input, expected result]
      */
-    public function dataProviderPaths()
+    public static function dataProviderPaths()
     {
         $tests = array();
 
--- a/tests/js/JSTest.php
+++ b/tests/js/JSTest.php
@@ -13,7 +13,7 @@
     {
         // override save method, there's no point in writing the result out here
         return $this->getMockBuilder('\MatthiasMullie\Minify\JS')
-            ->setMethods(array('save'))
+            ->onlyMethods(array('save'))
             ->getMock();
     }
 
@@ -58,7 +58,7 @@
     /**
      * @return array [input, expected result]
      */
-    public function dataProvider()
+    public static function dataProvider()
     {
         $tests = array();
 
