File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public function testGet()
9
9
{
10
10
$ handler = static ::$ client ->phpHandler ()->get ();
11
11
12
- $ this ->assertObjectHasAttribute ( 'type ' , $ handler );
12
+ $ this ->assertTrue ( property_exists ( $ handler , 'type ' ) );
13
13
}
14
14
15
15
public function testGetAll ()
@@ -22,7 +22,7 @@ public function testGetAll()
22
22
$ handler = current ($ handlers );
23
23
24
24
$ this ->assertIsObject ($ handler );
25
- $ this ->assertObjectHasAttribute ( 'type ' , $ handler );
25
+ $ this ->assertTrue ( property_exists ( $ handler , 'type ' ) );
26
26
}
27
27
28
28
public function testGetUnknownHandlerThrowsException ()
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function testGetDiskUsage()
26
26
$ webspace = static ::createWebspace ();
27
27
$ diskusage = static ::$ client ->webspace ()->getDiskUsage ('id ' , $ webspace ->id );
28
28
29
- $ this ->assertObjectHasAttribute ( 'httpdocs ' , $ diskusage );
29
+ $ this ->assertTrue ( property_exists ( $ diskusage , 'httpdocs ' ) );
30
30
31
31
static ::$ client ->webspace ()->delete ('id ' , $ webspace ->id );
32
32
}
You can’t perform that action at this time.
0 commit comments