glassboxx-sdk-php/tests/Glassboxx/ConfigTest.php
Oliver Davies e5268e9707 Add the Config class
Add a Config class for storing configuration values such as the
Glassboxx username, password and vendor ID.
2020-05-29 13:45:56 +01:00

23 lines
520 B
PHP

<?php
namespace Opdavies\Glassboxx\Tests\Glassboxx;
use Opdavies\Glassboxx\Config;
use PHPUnit\Framework\TestCase;
class ConfigTest extends TestCase
{
public function testThatGettersReturnExpectedValues(): void
{
$config = new Config(
12345,
'opdavies',
'secret'
);
$this->assertSame(12345, $config->getVendorId());
$this->assertSame('opdavies', $config->getUsername());
$this->assertSame('secret', $config->getPassword());
}
}