getSchemaChangeSql( $schemaChange ) ) . ";\n"; // sqlite hacks if ( $platform instanceof SqlitePlatform ) { // Doctrine prepends __temp__ to the table name and we set the table with // the schema prefix causing invalid sqlite. $actual = preg_replace( '/__temp__\s*\/\*_\*\//', '/*_*/__temp__', $actual ); } $expected = file_get_contents( $basePath . $expectedFile ); $this->assertSame( $expected, $actual ); } public static function provideTestGetResultAllTables() { yield 'MySQL schema tables' => [ new MySQLPlatform, '/data/db/mysql/patch-drop-ct_tag.sql' ]; yield 'PostgreSQL schema tables' => [ new MWPostgreSqlPlatform, '/data/db/postgres/patch-drop-ct_tag.sql' ]; yield 'SQLite schema tables' => [ new SqlitePlatform, '/data/db/sqlite/patch-drop-ct_tag.sql' ]; } }