Skip to content

Commit

Permalink
TECH Replace PHPUnit checks with plain PHP because there is no backwa…
Browse files Browse the repository at this point in the history
…rd-compatible upgrade path
  • Loading branch information
sibprogrammer committed Jul 14, 2023
1 parent 1ad64dc commit 8989791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/PhpHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/WebspaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8989791

Please sign in to comment.