HummingBirdAnimeClient/tests/AnimeClient/ConfigTest.php

27 lines
532 B
PHP
Raw Normal View History

<?php
2015-09-15 13:19:29 -04:00
use \Aviat\AnimeClient\Config;
2015-06-26 16:39:10 -04:00
class ConfigTest extends AnimeClient_TestCase {
public function setUp()
{
$this->config = new Config([
'foo' => 'bar',
2015-09-14 15:49:20 -04:00
'asset_path' => '/assets',
'bar' => 'baz'
]);
}
2015-10-06 11:38:20 -04:00
public function testConfigGet()
{
2015-10-06 11:38:20 -04:00
$this->assertEquals('bar', $this->config->get('foo'));
$this->assertEquals('baz', $this->config->get('bar'));
$this->assertNull($this->config->get('baz'));
}
public function testGetNonExistentConfigItem()
{
2015-10-06 11:38:20 -04:00
$this->assertNull($this->config->get('foobar'));
}
}