mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
19 lines
497 B
PHP
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']);
|
|
}
|
|
} |