mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 03:12:55 +09:00
Remove trailing whitespace in all unit tests
This commit is contained in:
parent
37b0d3a1e6
commit
3b77781d15
40 changed files with 840 additions and 840 deletions
|
|
@ -9,16 +9,16 @@ class ConfigTest extends \Codeception\TestCase\Test
|
|||
mkdir(RX_BASEDIR . 'files/config', 0755, true);
|
||||
copy(RX_BASEDIR . 'common/defaults/config.php', RX_BASEDIR . 'files/config/config.php');
|
||||
}
|
||||
|
||||
|
||||
Rhymix\Framework\Config::init();
|
||||
$this->assertTrue(version_compare(Rhymix\Framework\Config::get('config_version'), '2.0', '>='));
|
||||
$this->assertTrue(is_array(Rhymix\Framework\Config::get('db.master')));
|
||||
$this->assertNotEmpty(Rhymix\Framework\Config::get('db.master.host'));
|
||||
|
||||
|
||||
Rhymix\Framework\Config::set('foo.bar', $rand = mt_rand());
|
||||
$this->assertEquals(array('bar' => $rand), Rhymix\Framework\Config::get('foo'));
|
||||
$this->assertEquals($rand, Rhymix\Framework\Config::get('foo.bar'));
|
||||
|
||||
|
||||
$var = array('foo' => 'bar');
|
||||
$serialized = "array(\n\t'foo' => 'bar',\n)";
|
||||
$this->assertEquals($serialized, Rhymix\Framework\Config::serialize($var));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue