mirror of
https://github.com/dg/dibi.git
synced 2025-08-30 09:19:48 +02:00
used PHP 7.1 features
- ::class - ... argument unpacking - removed call_user_func - operator ?? - list() - short <?=
This commit is contained in:
@@ -39,7 +39,7 @@ $tests = function ($conn) {
|
||||
function () use ($conn) {
|
||||
$conn->translate('SELECT 1 %ofs', -10);
|
||||
},
|
||||
'Dibi\NotSupportedException',
|
||||
Dibi\NotSupportedException::class,
|
||||
'Negative offset or limit.'
|
||||
);
|
||||
|
||||
@@ -48,7 +48,7 @@ $tests = function ($conn) {
|
||||
function () use ($conn) {
|
||||
$conn->translate('SELECT 1 %lmt', -10);
|
||||
},
|
||||
'Dibi\NotSupportedException',
|
||||
Dibi\NotSupportedException::class,
|
||||
'Negative offset or limit.'
|
||||
);
|
||||
|
||||
@@ -57,7 +57,7 @@ $tests = function ($conn) {
|
||||
function () use ($conn) {
|
||||
$conn->translate('SELECT 1 %ofs %lmt', 10, -10);
|
||||
},
|
||||
'Dibi\NotSupportedException',
|
||||
Dibi\NotSupportedException::class,
|
||||
'Negative offset or limit.'
|
||||
);
|
||||
|
||||
@@ -66,7 +66,7 @@ $tests = function ($conn) {
|
||||
function () use ($conn) {
|
||||
$conn->translate('SELECT 1 %ofs %lmt', -10, 10);
|
||||
},
|
||||
'Dibi\NotSupportedException',
|
||||
Dibi\NotSupportedException::class,
|
||||
'Negative offset or limit.'
|
||||
);
|
||||
} else {
|
||||
@@ -82,7 +82,7 @@ $tests = function ($conn) {
|
||||
|
||||
Assert::exception(
|
||||
$conn->translate('SELECT 1 %ofs %lmt', 10, 10),
|
||||
'DibiNotSupportedException'
|
||||
Dibi\NotSupportedException::class
|
||||
);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user