23 lines
449 B
PHP
23 lines
449 B
PHP
|
<?php
|
||
|
|
||
|
namespace Aviat\Banker\Tests;
|
||
|
|
||
|
use Aviat\Banker\ItemCollection;
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
|
||
|
class ItemCollectionTest extends TestCase {
|
||
|
|
||
|
public function setUp()
|
||
|
{
|
||
|
$this->collection = new ItemCollection([]);
|
||
|
}
|
||
|
|
||
|
public function testJsonSerialize()
|
||
|
{
|
||
|
$this->assertEquals([], $this->collection->jsonSerialize());
|
||
|
|
||
|
$json = json_encode($this->collection);
|
||
|
$result = json_decode($json);
|
||
|
$this->assertEquals([], $result);
|
||
|
}
|
||
|
}
|