/** * 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; }
public function testClient() { $client = Simples::client(array('host' => 'something')); $other = Simples::client(array('host' => 'somethingelse')); $this->assertTrue($client->config('host') !== $other->config('host')); }