예제 #1
0
파일: AppTest.php 프로젝트: sugiphp/sugi
 public function testNullCache()
 {
     $app = new App(["cache" => new \SugiPHP\Cache\Cache(new \SugiPHP\Cache\NullStore())]);
     $app->cache("one", 1);
     // no value is actually stored
     $this->assertNull($app->cache("one"));
     $app->cache("arr", ["foo" => "bar"]);
     // no value is actually stored
     $this->assertNull($app->cache("arr"));
     // no value
     $this->assertNull($app->cache("two"));
 }