banker/tests/Driver/DriverTestBase.php

26 lines
441 B
PHP
Raw Normal View History

2016-09-05 16:43:37 -04:00
<?php
namespace Aviat\Banker\Tests\Driver;
use PHPUnit\Framework\TestCase;
class DriverTestBase extends TestCase {
protected $driver;
public function testGetSet()
{
$this->driver->set('foo', 'bar');
$this->assertEquals('bar', $this->driver->get('foo'));
$bar = [
'foo' => [
'apple' => 'orange'
],
'bar' => 'baz'
];
$this->driver->set('bar', $bar);
$this->assertEquals($bar, $this->driver->get('bar'));
}
}