diff --git a/examples/fetching-examples.php b/examples/fetching-examples.php index 3bf0b694..753738d0 100644 --- a/examples/fetching-examples.php +++ b/examples/fetching-examples.php @@ -1,5 +1,7 @@ NULL], $result->test(['col' => NULL])); Assert::exception(function () use ($result) { $result->test(['col' => TRUE]); - }, Exception::class); + }, TypeError::class); Assert::same(['col' => NULL], $result->test(['col' => FALSE])); Assert::same(['col' => NULL], $result->test(['col' => ''])); @@ -183,7 +185,7 @@ test(function () { Assert::same(['col' => NULL], $result->test(['col' => NULL])); Assert::exception(function () use ($result) { $result->test(['col' => TRUE]); - }, Exception::class); + }, TypeError::class); Assert::same(['col' => NULL], $result->test(['col' => FALSE])); Assert::same(['col' => NULL], $result->test(['col' => ''])); @@ -201,7 +203,7 @@ test(function () { Assert::same(['col' => NULL], $result->test(['col' => NULL])); Assert::exception(function () use ($result) { $result->test(['col' => TRUE]); - }, Exception::class); + }, TypeError::class); Assert::same(['col' => NULL], $result->test(['col' => FALSE])); Assert::same(['col' => NULL], $result->test(['col' => ''])); @@ -217,7 +219,7 @@ test(function () { Assert::same(['col' => NULL], $result->test(['col' => NULL])); Assert::exception(function () use ($result) { $result->test(['col' => TRUE]); - }, Exception::class); + }, TypeError::class); Assert::same(['col' => NULL], $result->test(['col' => FALSE])); Assert::same(['col' => NULL], $result->test(['col' => ''])); diff --git a/tests/dibi/Result.types.phpt b/tests/dibi/Result.types.phpt index 6be67fc0..aeddfba3 100644 --- a/tests/dibi/Result.types.phpt +++ b/tests/dibi/Result.types.phpt @@ -1,5 +1,7 @@