PHP8
[m6w6/seekat] / tests / CallTest.php
index 4227e1ea54f1f1302167f165ce79a9cf552c0ba9..16268e93db567144e95aaf4e3233810a70c20984 100644 (file)
@@ -56,9 +56,9 @@ class CallTest extends BaseTest
                $m6w6 = $this->assertSuccess($api->users->m6w6);
                $followers = $this->assertSuccess($api->users->m6w6->followers);
                $data = $followers->export()["data"];
-               $this->assertInternalType("array", $data);
-               $this->assertInternalType("object", $data[0]);
-               $this->assertInternalType("object", $followers->{0});
+               $this->assertIsArray($data);
+               $this->assertIsObject($data[0]);
+               $this->assertIsObject($followers->{0});
                $this->assertGreaterThan(30, (string) $m6w6->followers);
                $this->assertGreaterThan(0, count($followers));
        }
@@ -71,9 +71,9 @@ class CallTest extends BaseTest
                $m6w6 = $this->assertSuccess($api->users->m6w6);
                $followers = $this->assertSuccess($m6w6->followers_url);
                $data = $followers->export()["data"];
-               $this->assertInternalType("array", $data);
-               $this->assertInternalType("object", $data[0]);
-               $this->assertInternalType("object", $followers->{0});
+               $this->assertIsArray($data);
+               $this->assertIsObject($data[0]);
+               $this->assertIsObject($followers->{0});
                $this->assertGreaterThan(30, (string) $m6w6->followers);
                $this->assertGreaterThan(0, count($followers));
        }
@@ -92,7 +92,7 @@ class CallTest extends BaseTest
                $followers = $results[0];
                $this->assertInstanceOf(API::class, $followers);
                $data = $followers->export()["data"];
-               $this->assertInternalType("array", $data);
+               $this->assertIsArray($data);
                $this->assertGreaterThan(0, count($data));
        }