diff --git a/tests/PhpHandlerTest.php b/tests/PhpHandlerTest.php index e1b068f8..e4fb3090 100644 --- a/tests/PhpHandlerTest.php +++ b/tests/PhpHandlerTest.php @@ -9,7 +9,7 @@ public function testGet() { $handler = static::$client->phpHandler()->get(); - $this->assertObjectHasAttribute('type', $handler); + $this->assertTrue(property_exists($handler, 'type')); } public function testGetAll() @@ -22,7 +22,7 @@ public function testGetAll() $handler = current($handlers); $this->assertIsObject($handler); - $this->assertObjectHasAttribute('type', $handler); + $this->assertTrue(property_exists($handler, 'type')); } public function testGetUnknownHandlerThrowsException() diff --git a/tests/WebspaceTest.php b/tests/WebspaceTest.php index fabe82fb..92edeb9d 100644 --- a/tests/WebspaceTest.php +++ b/tests/WebspaceTest.php @@ -26,7 +26,7 @@ public function testGetDiskUsage() $webspace = static::createWebspace(); $diskusage = static::$client->webspace()->getDiskUsage('id', $webspace->id); - $this->assertObjectHasAttribute('httpdocs', $diskusage); + $this->assertTrue(property_exists($diskusage, 'httpdocs')); static::$client->webspace()->delete('id', $webspace->id); }