Skip to content

Commit

Permalink
Fix #[Expect] usage in Sybase and MSSQL integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Nov 19, 2023
1 parent b76569b commit 88439d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)');
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace rdbms\unittest\integration;

use rdbms\SQLStatementFailedException;
use test\{Assert, Before, Expect, PrerequisitesNotMetError, Test};
use test\{Assert, Before, Expect, Test};
use util\{Bytes, Date};

/**
Expand Down Expand Up @@ -161,7 +161,7 @@ public function selectMaxUnsignedBigInt() {
});
}

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

0 comments on commit 88439d4

Please sign in to comment.