1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-11 08:34:59 +02:00

added declare(strict_types=1);

This commit is contained in:
David Grudl
2017-06-09 22:20:47 +02:00
parent 957d9281f3
commit a6028054d6
78 changed files with 160 additions and 4 deletions

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
use Dibi\Connection;

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
use Dibi\Row;

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Dibi\Row;

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Dibi\Fluent;

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider? ../databases.ini mysql
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
use Dibi\Row;

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Dibi\Helpers;
use Tester\Assert;

View File

@@ -4,6 +4,8 @@
* @dataProvider? ../databases.ini postgre
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini !=odbc, !=sqlsrv
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Dibi\Type;
@@ -164,7 +166,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' => '']));
@@ -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' => '']));

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider? ../databases.ini sqlsrv
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider? ../databases.ini sqlsrv
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @phpversion 5.5
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
use Dibi\DateTime;

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
// The Nette Tester command-line runner can be
// invoked through the command: ../../vendor/bin/tester .

View File

@@ -5,6 +5,8 @@
* @dataProvider? ../databases.ini mysql
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -5,6 +5,8 @@
* @dataProvider? ../databases.ini postgre
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -5,6 +5,8 @@
* @dataProvider ../databases.ini sqlite
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider ../databases.ini !=odbc
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -4,6 +4,8 @@
* @dataProvider? ../databases.ini mysql
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';