mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
25 lines
621 B
PHP
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.');
|
|
}
|
|
}
|