From 88439d41e63baecd18bfcdeb3937c43947ec131e Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sun, 19 Nov 2023 14:07:57 +0100 Subject: [PATCH] Fix #[Expect] usage in Sybase and MSSQL integration tests --- .../rdbms/unittest/integration/MsSQLIntegrationTest.class.php | 2 +- .../unittest/integration/SybaseIntegrationTest.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/it/php/rdbms/unittest/integration/MsSQLIntegrationTest.class.php b/src/it/php/rdbms/unittest/integration/MsSQLIntegrationTest.class.php index 7d18f845..5f391c5b 100755 --- a/src/it/php/rdbms/unittest/integration/MsSQLIntegrationTest.class.php +++ b/src/it/php/rdbms/unittest/integration/MsSQLIntegrationTest.class.php @@ -158,7 +158,7 @@ public function selectEmptyVarBinary() { Assert::null($this->db()->query('select cast("" as varbinary) as value')->next('value')); } - #[Test, Expect(['class' => SQLStatementFailedException::class, 'withMessage' => '/More power/'])] + #[Test, Expect(class: SQLStatementFailedException::class, message: '/More power/')] public function raiseError() { $this->db()->query('raiserror ("More power", 16, 1)'); } diff --git a/src/it/php/rdbms/unittest/integration/SybaseIntegrationTest.class.php b/src/it/php/rdbms/unittest/integration/SybaseIntegrationTest.class.php index fd6ed1cc..40e9c665 100755 --- a/src/it/php/rdbms/unittest/integration/SybaseIntegrationTest.class.php +++ b/src/it/php/rdbms/unittest/integration/SybaseIntegrationTest.class.php @@ -1,7 +1,7 @@ SQLStatementFailedException::class, 'withMessage' => '/More power/'])] + #[Test, Expect(class: SQLStatementFailedException::class, message: '/More power/')] public function raiseError() { $this->db()->query('raiserror 61000 "More power"'); }