public function testResponse() { $username = API_ENVS::get()["user1"]["login"]; $user = Vzaar::getUserDetails($username); $this->assertEquals($username, $user->authorName); }
<?php /* * @author Skitsanos */ require_once '../src/Vzaar.php'; /** * This API call returns the user's public details along with it's relevant metadata */ var_dump(Vzaar::getUserDetails('user'));