芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/vendor/plesk/api-php-lib/tests/PhpHandlerTest.php
phpHandler()->get(); $this->assertTrue(property_exists($handler, 'type')); } public function testGetAll() { $handlers = static::$client->phpHandler()->getAll(); $this->assertIsArray($handlers); $this->assertNotEmpty($handlers); $handler = current($handlers); $this->assertIsObject($handler); $this->assertTrue(property_exists($handler, 'type')); } public function testGetUnknownHandlerThrowsException() { $this->expectException(\PleskX\Api\Exception::class); $this->expectExceptionMessage('Php handler does not exists'); static::$client->phpHandler()->get('id', 'this-handler-does-not-exist'); } }