X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=tests%2FCallTest.php;fp=tests%2FCallTest.php;h=16268e93db567144e95aaf4e3233810a70c20984;hp=4227e1ea54f1f1302167f165ce79a9cf552c0ba9;hb=2121556150be871684b5046af7cf250b8219128d;hpb=cac6bea94e6cde142c951566fa6387ffa54eb3cb diff --git a/tests/CallTest.php b/tests/CallTest.php index 4227e1e..16268e9 100644 --- a/tests/CallTest.php +++ b/tests/CallTest.php @@ -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)); }