banker/tests/ItemCollectionTest.php

23 lines
449 B
PHP
Raw Normal View History

2016-09-06 17:03:43 -04:00
<?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);
}
}