public static function factory(Adapter\AdapterInterface $adapter, $encryption = 0) { return new self($adapter, $encryption); }
public function testConstructor() { $this->assertInstanceOf('Pop\\Auth\\Auth', new Auth(new File(__DIR__ . '/../tmp/access.txt'))); $this->assertInstanceOf('Pop\\Auth\\Auth', Auth::factory(new File(__DIR__ . '/../tmp/access.txt'))); }