@@ -69,7 +69,7 @@ public function testCreateUser()
6969 'phone ' => rand (1000 , 999999 )
7070 ];
7171 $ result = $ this ->api ->createUser ($ profile );
72- $ this ->assertInternalType ( ' array ' , $ result , 'Response should be an array ' );
72+ $ this ->assertIsArray ( $ result , 'Response should be an array ' );
7373 $ this ->assertArrayHasKey ('status ' , $ result , 'Response should have status key ' );
7474 $ this ->assertEquals ('ok ' , $ result ['status ' ], 'Status should be ok ' );
7575 $ this ->assertArrayHasKey ('token ' , $ result , 'Response should have token key ' );
@@ -82,7 +82,7 @@ public function testGetUser()
8282 echo "\nTesting user retrieval... \n" ;
8383 $ email = $ this ->testCreateUser ();
8484 $ result = $ this ->api ->getUser ('email ' , $ email );
85- $ this ->assertInternalType ( ' array ' , $ result , 'Response should be an array ' );
85+ $ this ->assertIsArray ( $ result , 'Response should be an array ' );
8686 $ this ->assertArrayHasKey ('status ' , $ result , 'Response should have status key ' );
8787 $ this ->assertEquals ('ok ' , $ result ['status ' ], 'Status should be ok ' );
8888 $ this ->assertArrayHasKey ('profile ' , $ result , 'Response should have profile key ' );
@@ -99,7 +99,7 @@ public function testUpdateUser()
9999 'phone ' => '+9876543210 '
100100 ];
101101 $ result = $ this ->api ->updateUser ('email ' , $ email , $ profile );
102- $ this ->assertInternalType ( ' array ' , $ result , 'Response should be an array ' );
102+ $ this ->assertIsArray ( $ result , 'Response should be an array ' );
103103 $ this ->assertArrayHasKey ('status ' , $ result , 'Response should have status key ' );
104104 $ this ->assertEquals ('ok ' , $ result ['status ' ], 'Status should be ok ' );
105105 // Verify the update
0 commit comments