public function testConstructor() { $schema = new Schema($this->db, 'myschema'); $this->assertEquals('myschema', $schema->name()); $this->assertEquals($this->db->path() . 'myschema/', $schema->path()); $this->assertEquals($this->db, $schema->database()); }
public function __construct(Schema $schema) { $this->schema = $schema; $path = $schema->path() . 'sequences'; $this->sequences = array(); $this->file = new LockableFile(new File($path . '.cgi')); $this->lockFile = new MicrotimeLockFile(new File($path . '.lock.cgi')); }