Skip to content

Commit 8989791

Browse files
committed
TECH Replace PHPUnit checks with plain PHP because there is no backward-compatible upgrade path
1 parent 1ad64dc commit 8989791

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: tests/PhpHandlerTest.php

+2-2
Original file line numberDiff line numberDiff 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()

Diff for: tests/WebspaceTest.php

+1-1
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)