| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class StandardTest extends \PHPUnit\Framework\TestCase |
||
| 7 | { |
||
| 8 | private $object; |
||
| 9 | |||
| 10 | |||
| 11 | protected function setUp() : void |
||
| 14 | } |
||
| 15 | |||
| 16 | |||
| 17 | protected function tearDown() : void |
||
| 20 | } |
||
| 21 | |||
| 22 | |||
| 23 | public function testGet() |
||
| 24 | { |
||
| 25 | $conn = $this->object->get()->close(); |
||
| 26 | |||
| 27 | $this->assertInstanceOf( \Aimeos\Base\DB\Connection\Iface::class, $conn ); |
||
| 28 | } |
||
| 29 | |||
| 30 | |||
| 31 | public function testGetNew() |
||
| 32 | { |
||
| 33 | $conn = $this->object->get( 'db', true )->close(); |
||
| 34 | |||
| 35 | $this->assertInstanceOf( \Aimeos\Base\DB\Connection\Iface::class, $conn ); |
||
| 36 | } |
||
| 37 | |||
| 38 | |||
| 39 | public function testGetFallback() |
||
| 44 | } |
||
| 45 | } |
||
| 46 |