'mysql://fallback:secret@database:3306/booking'];\n"); expectSame( 'mysql://fallback:secret@database:3306/booking', bookingDatabaseUrl('', $configFile), 'The configuration file must be used when DATABASE_URL is empty.' ); expectSame( 'mysql://environment:secret@database:3306/booking', bookingDatabaseUrl('mysql://environment:secret@database:3306/booking', $configFile), 'DATABASE_URL must take precedence over the configuration file.' ); } finally { unlink($configFile); } echo "booking backend configuration tests passed\n";