Skip to content

Commit 88439d4

Browse files
committed
Fix #[Expect] usage in Sybase and MSSQL integration tests
1 parent b76569b commit 88439d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/it/php/rdbms/unittest/integration/MsSQLIntegrationTest.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function selectEmptyVarBinary() {
158158
Assert::null($this->db()->query('select cast("" as varbinary) as value')->next('value'));
159159
}
160160

161-
#[Test, Expect(['class' => SQLStatementFailedException::class, 'withMessage' => '/More power/'])]
161+
#[Test, Expect(class: SQLStatementFailedException::class, message: '/More power/')]
162162
public function raiseError() {
163163
$this->db()->query('raiserror ("More power", 16, 1)');
164164
}

src/it/php/rdbms/unittest/integration/SybaseIntegrationTest.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php namespace rdbms\unittest\integration;
22

33
use rdbms\SQLStatementFailedException;
4-
use test\{Assert, Before, Expect, PrerequisitesNotMetError, Test};
4+
use test\{Assert, Before, Expect, Test};
55
use util\{Bytes, Date};
66

77
/**
@@ -161,7 +161,7 @@ public function selectMaxUnsignedBigInt() {
161161
});
162162
}
163163

164-
#[Test, Expect(['class' => SQLStatementFailedException::class, 'withMessage' => '/More power/'])]
164+
#[Test, Expect(class: SQLStatementFailedException::class, message: '/More power/')]
165165
public function raiseError() {
166166
$this->db()->query('raiserror 61000 "More power"');
167167
}

0 commit comments

Comments
 (0)