| 1 | <?php |
||
| 5 | use Brownie\Util\StorageList; |
||
| 6 | |||
| 7 | class StorageListTest extends \PHPUnit_Framework_TestCase |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var StorageList |
||
| 12 | */ |
||
| 13 | private $storageList; |
||
| 14 | |||
| 15 | protected function setUp() |
||
| 23 | |||
| 24 | protected function tearDown() |
||
| 28 | |||
| 29 | public function testGet() |
||
| 36 | |||
| 37 | public function testToArray() |
||
| 38 | { |
||
| 39 | $list = array( |
||
| 40 | 'test1' => 'Hello1', |
||
| 41 | 'test3' => 'Hello3', |
||
| 42 | 'test4' => 'Hello4', |
||
| 43 | ); |
||
| 44 | $this->assertEquals($list, $this->storageList->toArray()); |
||
| 45 | } |
||
| 47 |