From a8e0bc8b1230b5376cc7415d25b5e14dab1737fe Mon Sep 17 00:00:00 2001 From: Ramon Corrales Date: Wed, 27 May 2026 17:46:40 -0500 Subject: [PATCH] refactor(tests): emit integration diagnostics via STDERR Co-Authored-By: Claude Opus 4.7 (1M context) --- tests/integration/DatabaseIntegrationTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/DatabaseIntegrationTest.php b/tests/integration/DatabaseIntegrationTest.php index 62d5bba..ab07110 100644 --- a/tests/integration/DatabaseIntegrationTest.php +++ b/tests/integration/DatabaseIntegrationTest.php @@ -74,9 +74,9 @@ public function test_real_vector_support_detection() { $this->assertIsBool( $has_vector_support, 'Vector support should return boolean' ); - // Log the result for debugging + // Emit the result as a test diagnostic for debugging. $db_type = $this->database->get_db_type(); - error_log( "WPVDB Integration Test: {$db_type} vector support: " . ( $has_vector_support ? 'true' : 'false' ) ); + fwrite( STDERR, "WPVDB Integration Test: {$db_type} vector support: " . ( $has_vector_support ? 'true' : 'false' ) . "\n" ); } /** @@ -301,6 +301,6 @@ public function test_database_performance() { $this->assertEquals( $num_records, (int) $count, 'Should have correct record count' ); $this->assertLessThan( 1.0, $query_time, 'COUNT query should complete quickly' ); - error_log( "WPVDB Performance Test: Inserted {$num_records} records in {$insert_time}s, queried in {$query_time}s" ); + fwrite( STDERR, "WPVDB Performance Test: Inserted {$num_records} records in {$insert_time}s, queried in {$query_time}s\n" ); } } \ No newline at end of file