mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-02-17 22:50:48 +00:00
Add the Config class
Add a Config class for storing configuration values such as the Glassboxx username, password and vendor ID.
This commit is contained in:
parent
4db74ad058
commit
e5268e9707
4 changed files with 78 additions and 1 deletions
22
tests/Glassboxx/ConfigTest.php
Normal file
22
tests/Glassboxx/ConfigTest.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?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());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue