Files
php-flasher/Tests/Config/ConfigTest.php
T
2020-12-02 00:57:12 +01:00

25 lines
621 B
PHP

<?php
namespace Flasher\Laravel\Tests\Config;
use Illuminate\Foundation\Application;
use Flasher\Laravel\Config\Config;
use Flasher\Laravel\Tests\TestCase;
final class ConfigTest extends TestCase
{
public function test_simple_config()
{
$separator = $this->isLaravel4() ? '::' : '.';
$config = new Config($this->app->make('config'), $separator);
$this->assertEquals('toastr', $config->get('default'));
$this->assertSame(array(), $config->get('adapters', array()));
}
private function isLaravel4()
{
return 0 === strpos(Application::VERSION, '4.');
}
}