Exemplo n.º 1
0
 /**
  * Gets the current factory (and generates it if necessary).
  * 
  * @return Simple_Factory
  */
 protected static function _factory()
 {
     if (!isset(self::$_factory)) {
         self::$_factory = new Simples_Factory();
     }
     return self::$_factory;
 }
Exemplo n.º 2
0
 public function testClient()
 {
     $client = Simples::client(array('host' => 'something'));
     $other = Simples::client(array('host' => 'somethingelse'));
     $this->assertTrue($client->config('host') !== $other->config('host'));
 }