Skip to content

Commit

Permalink
update config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
orvice committed May 16, 2016
1 parent 76dc61d commit bb42484
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Pongtan/View/Factory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace OzCat\View;
namespace Pongtan\View;

use Smarty;

Expand Down
20 changes: 15 additions & 5 deletions tests/Services/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ class ConfigTest extends PHPUnit_Framework_TestCase
{
public function testConfig()
{
$key = "test_key";
$value = "test_value";
Config::set($key,$value);
$this->assertEquals($value,Config::get($key));
$key = "foo";
$value = "bar";
Config::set($key, $value);
$this->assertEquals($value, Config::get($key));

$true = 'true';
$false = 'false';

Config::set($key, $true);
$this->assertEquals(true, Config::get($key));

Config::set($key, $false);
$this->assertEquals(false, Config::get($key));

}

}

0 comments on commit bb42484

Please sign in to comment.