File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public function testGet()
99 {
1010 $ handler = static ::$ client ->phpHandler ()->get ();
1111
12- $ this ->assertObjectHasAttribute ( 'type ' , $ handler );
12+ $ this ->assertTrue ( property_exists ( $ handler , 'type ' ) );
1313 }
1414
1515 public function testGetAll ()
@@ -22,7 +22,7 @@ public function testGetAll()
2222 $ handler = current ($ handlers );
2323
2424 $ this ->assertIsObject ($ handler );
25- $ this ->assertObjectHasAttribute ( 'type ' , $ handler );
25+ $ this ->assertTrue ( property_exists ( $ handler , 'type ' ) );
2626 }
2727
2828 public function testGetUnknownHandlerThrowsException ()
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function testGetDiskUsage()
2626 $ webspace = static ::createWebspace ();
2727 $ diskusage = static ::$ client ->webspace ()->getDiskUsage ('id ' , $ webspace ->id );
2828
29- $ this ->assertObjectHasAttribute ( 'httpdocs ' , $ diskusage );
29+ $ this ->assertTrue ( property_exists ( $ diskusage , 'httpdocs ' ) );
3030
3131 static ::$ client ->webspace ()->delete ('id ' , $ webspace ->id );
3232 }
You can’t perform that action at this time.
0 commit comments