From ea06b5c7f23797a81c3c7c5692a284f3a796e7c3 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Fri, 11 Oct 2024 21:02:46 +0700 Subject: [PATCH] Fix tests --- .github/workflows/build.yml | 2 +- tests/DsnTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61153a39a..1b86df233 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: env: COMPOSER_ROOT_VERSION: 1.0.0 - EXTENSIONS: pdo, pdo_sqlsrv-5.10.1 + EXTENSIONS: pdo, pdo_sqlsrv-5.12 runs-on: ${{ matrix.mssql.os || 'ubuntu-latest' }} diff --git a/tests/DsnTest.php b/tests/DsnTest.php index 719c66f2b..0a2c07c0c 100644 --- a/tests/DsnTest.php +++ b/tests/DsnTest.php @@ -24,17 +24,17 @@ public function testAsString(): void public function testAsStringWithDatabaseName(): void { - $this->assertSame('sqlsrv:Server=127.0.0.1,1433;', (new Dsn('sqlsrv', '127.0.0.1'))->asString()); + $this->assertSame('sqlsrv:Server=127.0.0.1,1433', (new Dsn('sqlsrv', '127.0.0.1'))->asString()); } public function testAsStringWithDatabaseNameWithEmptyString(): void { - $this->assertSame('sqlsrv:Server=127.0.0.1,1433;', (new Dsn('sqlsrv', '127.0.0.1', ''))->asString()); + $this->assertSame('sqlsrv:Server=127.0.0.1,1433', (new Dsn('sqlsrv', '127.0.0.1', ''))->asString()); } public function testAsStringWithDatabaseNameWithNull(): void { - $this->assertSame('sqlsrv:Server=127.0.0.1,1433;', (new Dsn('sqlsrv', '127.0.0.1', null))->asString()); + $this->assertSame('sqlsrv:Server=127.0.0.1,1433', (new Dsn('sqlsrv', '127.0.0.1', null))->asString()); } public function testAsStringWithEmptyPort(): void