public function testFactory() { $ini = <<<INI [now new DateTime] time = now INI; $c = new Container(parse_ini_string($ini, true)); $result = $c->now; $result2 = $c->now; $this->assertNotSame($result, $result2); }