mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-01-22 20:17:32 +00:00
Oliver Davies
e5268e9707
Add a Config class for storing configuration values such as the Glassboxx username, password and vendor ID.
23 lines
520 B
PHP
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());
|
|
}
|
|
}
|