$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));
}
$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));
}
$followers = $results[0];
$this->assertInstanceOf(API::class, $followers);
$data = $followers->export()["data"];
- $this->assertInternalType("array", $data);
+ $this->assertIsArray($data);
$this->assertGreaterThan(0, count($data));
}