Files
FOSSBilling/tests/bb-library/Box/ConfigTest.php
T
2014-11-03 09:00:47 +02:00

19 lines
497 B
PHP

<?php
class Box_ConfigTest extends PHPUnit_Framework_TestCase
{
public function testConfig()
{
$data = array(
'test' => 'value',
'baz' => array(
'foo' => '1',
'bar' => '2',
),
);
$config = new Box_Config($data);
$this->assertEquals('value', $config['test']);
$this->assertEquals('1', $config['baz']['foo']);
$this->assertEquals('2', $config['baz']['bar']);
}
}