/** * test db schema creation */ public function test_db_schema_creation() { $schema = new Task_Db_Schema($this->adapter); $schema->set_framework($this->framework); $schema->execute(array()); $this->assertEquals(true, file_exists($this->db_dir . '/schema.txt')); }
public function testHelp() { $expected = <<<USAGE Task: [36mdb:schema[0m It can be beneficial to get a dump of the DB in raw SQL format which represents the current version. [31mNote[0m: This dump only contains the actual schema (e.g. the DML needed to reconstruct the DB), but not any actual data. In MySQL terms, this task would not be the same as running the mysqldump command (which by defaults does include any data in the tables). USAGE; $actual = $this->object->help(); $this->assertEquals($expected, $actual); }