Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 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'));
 }