/** * @test */ public function itShouldReturnSchemaIfSchemaHasValue() { $table = new Table("user", "website"); $this->assertEquals("website", $table->getSchema()); }
/** * @test */ public function itShouldReturnSchemaIfSchemaHasValue() { $table = new Table('user', 'website'); $this->assertEquals('website', $table->getSchema()); }
/** * @param Table $table * * @return string */ public function writeTable(Table $table) { $schema = $table->getSchema() ? "{$table->getSchema()}." : ''; return $schema . $this->writeTableName($table); }