From 2b15c811952aed6e034d7a0d70f2582ca3bbb5b1 Mon Sep 17 00:00:00 2001 From: noone-silent Date: Thu, 1 Aug 2024 08:20:18 +0700 Subject: [PATCH] refactor(builder): refactor from zephir. --- src/Mvc/Model/Query/Builder.php | 12 +- src/Mvc/Model/Query/BuilderInterface.php | 2 +- src/Mvc/Model/QueryInterface.php | 3 +- src/Paginator/Adapter/AbstractAdapter.php | 7 +- src/Paginator/Adapter/Model.php | 4 +- src/Paginator/Adapter/NativeArray.php | 6 +- src/Paginator/Exception.php | 2 - src/Paginator/Repository.php | 10 +- src/Paginator/RepositoryInterface.php | 16 +- tests/_data/fixtures/Factory/TestFactory.php | 46 -- tests/_support/Helper/Database.php | 1 - .../_support/_generated/UnitTesterActions.php | 702 +++++------------- .../Mvc/Model/Criteria/FromInputCest.php | 8 +- .../Paginator/Adapter/Model/PaginateCest.php | 2 +- tests/unit/Factory/ServicesCest.php | 54 -- 15 files changed, 207 insertions(+), 668 deletions(-) delete mode 100644 tests/_data/fixtures/Factory/TestFactory.php delete mode 100644 tests/unit/Factory/ServicesCest.php diff --git a/src/Mvc/Model/Query/Builder.php b/src/Mvc/Model/Query/Builder.php index 3e007aae2..5254ee223 100644 --- a/src/Mvc/Model/Query/Builder.php +++ b/src/Mvc/Model/Query/Builder.php @@ -441,10 +441,10 @@ final public function autoescape(string $identifier): string * $builder->betweenHaving("SUM(Robots.price)", 100.25, 200.50); *``` * - * @param string $expr + * @param string $expr * @param string|float|int $minimum * @param string|float|int $maximum - * @param string $operator + * @param string $operator * * @throws Exception * @return BuilderInterface @@ -542,7 +542,8 @@ public function columns(array | string $columns): BuilderInterface * Sets SELECT DISTINCT / SELECT ALL flag * *```php - * $builder->distinct(); + * $builder->distinct("status"); + * $builder->distinct(true); * $builder->distinct(false); *``` * @@ -1969,6 +1970,11 @@ protected function conditionNotIn( return $this; } + /** + * @param array $conditions + * + * @return string + */ private function mergeConditions(array $conditions): string { $mergedConditions = []; diff --git a/src/Mvc/Model/Query/BuilderInterface.php b/src/Mvc/Model/Query/BuilderInterface.php index 9ef9ba2b8..82ad8a390 100644 --- a/src/Mvc/Model/Query/BuilderInterface.php +++ b/src/Mvc/Model/Query/BuilderInterface.php @@ -21,7 +21,7 @@ interface BuilderInterface { public const OPERATOR_AND = "and"; - public const OPERATOR_OR = "or"; + public const OPERATOR_OR = "or"; /** * Add a model to take part of the query diff --git a/src/Mvc/Model/QueryInterface.php b/src/Mvc/Model/QueryInterface.php index 63379258d..90520e1cf 100644 --- a/src/Mvc/Model/QueryInterface.php +++ b/src/Mvc/Model/QueryInterface.php @@ -1,6 +1,6 @@ @@ -16,7 +16,6 @@ use Phalcon\Mvc\ModelInterface; /** - * Phalcon\Mvc\Model\QueryInterface * Interface for Phalcon\Mvc\Model\Query */ interface QueryInterface diff --git a/src/Paginator/Adapter/AbstractAdapter.php b/src/Paginator/Adapter/AbstractAdapter.php index 86efc25d9..5214c5435 100644 --- a/src/Paginator/Adapter/AbstractAdapter.php +++ b/src/Paginator/Adapter/AbstractAdapter.php @@ -1,6 +1,6 @@ @@ -17,9 +17,6 @@ use Phalcon\Paginator\Repository; use Phalcon\Paginator\RepositoryInterface; -/** - * Phalcon\Paginator\Adapter\AbstractAdapter - */ abstract class AbstractAdapter implements AdapterInterface { /** @@ -60,7 +57,7 @@ abstract class AbstractAdapter implements AdapterInterface public function __construct(array $config) { $this->repository = new Repository(); - $this->config = $config; + $this->config = $config; if (isset($config["limit"])) { $this->setLimit( diff --git a/src/Paginator/Adapter/Model.php b/src/Paginator/Adapter/Model.php index 717081383..de09dbb35 100644 --- a/src/Paginator/Adapter/Model.php +++ b/src/Paginator/Adapter/Model.php @@ -1,6 +1,6 @@ @@ -8,6 +8,7 @@ * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ + declare(strict_types=1); namespace Phalcon\Paginator\Adapter; @@ -15,7 +16,6 @@ use Phalcon\Paginator\RepositoryInterface; /** - * Phalcon\Paginator\Adapter\Model * This adapter allows to paginate data using a Phalcon\Mvc\Model resultset as a * base. * ```php diff --git a/src/Paginator/Adapter/NativeArray.php b/src/Paginator/Adapter/NativeArray.php index a246bfa9d..a7c841d79 100644 --- a/src/Paginator/Adapter/NativeArray.php +++ b/src/Paginator/Adapter/NativeArray.php @@ -1,6 +1,6 @@ @@ -8,6 +8,7 @@ * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ + declare(strict_types=1); namespace Phalcon\Paginator\Adapter; @@ -16,10 +17,11 @@ use Phalcon\Paginator\RepositoryInterface; /** - * Phalcon\Paginator\Adapter\NativeArray * Pagination using a PHP array as source of data + * * ```php * use Phalcon\Paginator\Adapter\NativeArray; + * * $paginator = new NativeArray( * [ * "data" => [ diff --git a/src/Paginator/Exception.php b/src/Paginator/Exception.php index 57af3f394..798106dfd 100644 --- a/src/Paginator/Exception.php +++ b/src/Paginator/Exception.php @@ -14,8 +14,6 @@ namespace Phalcon\Paginator; /** - * Phalcon\Paginator\Exception - * * Exceptions thrown in Phalcon\Paginator will use this class */ class Exception extends \Exception diff --git a/src/Paginator/Repository.php b/src/Paginator/Repository.php index 8a6501226..25b727843 100644 --- a/src/Paginator/Repository.php +++ b/src/Paginator/Repository.php @@ -1,6 +1,6 @@ @@ -8,6 +8,7 @@ * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ + declare(strict_types=1); namespace Phalcon\Paginator; @@ -16,15 +17,20 @@ use Phalcon\Traits\Helper\Str\CamelizeTrait; /** - * Phalcon\Paginator\Repository * Repository of current state Phalcon\Paginator\AdapterInterface::paginate() */ class Repository implements RepositoryInterface, JsonSerializable { use CamelizeTrait; + /** + * @var array + */ protected array $aliases = []; + /** + * @var array + */ protected array $properties = []; /** diff --git a/src/Paginator/RepositoryInterface.php b/src/Paginator/RepositoryInterface.php index 241ba4d35..6a6b1bc11 100644 --- a/src/Paginator/RepositoryInterface.php +++ b/src/Paginator/RepositoryInterface.php @@ -1,6 +1,6 @@ @@ -19,14 +19,14 @@ */ interface RepositoryInterface { - public const PROPERTY_CURRENT_PAGE = 'current'; - public const PROPERTY_FIRST_PAGE = 'first'; - public const PROPERTY_ITEMS = 'items'; - public const PROPERTY_LAST_PAGE = 'last'; - public const PROPERTY_LIMIT = 'limit'; - public const PROPERTY_NEXT_PAGE = 'next'; + public const PROPERTY_CURRENT_PAGE = 'current'; + public const PROPERTY_FIRST_PAGE = 'first'; + public const PROPERTY_ITEMS = 'items'; + public const PROPERTY_LAST_PAGE = 'last'; + public const PROPERTY_LIMIT = 'limit'; + public const PROPERTY_NEXT_PAGE = 'next'; public const PROPERTY_PREVIOUS_PAGE = 'previous'; - public const PROPERTY_TOTAL_ITEMS = 'total_items'; + public const PROPERTY_TOTAL_ITEMS = 'total_items'; /** * Gets the aliases for properties repository diff --git a/tests/_data/fixtures/Factory/TestFactory.php b/tests/_data/fixtures/Factory/TestFactory.php deleted file mode 100644 index 2225190c7..000000000 --- a/tests/_data/fixtures/Factory/TestFactory.php +++ /dev/null @@ -1,46 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -declare(strict_types=1); - -namespace Phalcon\Tests\Fixtures\Factory; - -use Phalcon\Factory\AbstractFactory; -use Phalcon\Factory\Exception; - -class TestFactory extends AbstractFactory -{ - public function __construct(array $services) - { - $this->init($services); - } - - public function services(): array - { - return $this->getServices(); - } - - /** - * @throws Exception - */ - public function service(string $name): mixed - { - return $this->getService($name); - } - - /** - * @inheritDoc - */ - protected function getServices(): array - { - return $this->services; - } -} diff --git a/tests/_support/Helper/Database.php b/tests/_support/Helper/Database.php index bdbf1b204..212ede88c 100644 --- a/tests/_support/Helper/Database.php +++ b/tests/_support/Helper/Database.php @@ -8,7 +8,6 @@ use Codeception\Exception\ModuleException; use Codeception\Module; use Codeception\TestInterface; -use Codeception\Util\Debug; use PDO; use Phalcon\DataMapper\Pdo\Connection; diff --git a/tests/_support/_generated/UnitTesterActions.php b/tests/_support/_generated/UnitTesterActions.php index 437500cfd..a9a4124f3 100644 --- a/tests/_support/_generated/UnitTesterActions.php +++ b/tests/_support/_generated/UnitTesterActions.php @@ -1,4 +1,4 @@ -seeNumRecords(2, 'users'); //executed on default database - * $I->amConnectedToDatabase('db_books'); - * $I->seeNumRecords(30, 'books'); //executed on db_books database - * //All the next queries will be on db_books - * ``` - * - * @throws ModuleConfigException - * @see \Codeception\Module\Db::amConnectedToDatabase() - */ - public function amConnectedToDatabase(string $databaseKey): void { - $this->getScenario()->runStep(new \Codeception\Step\Condition('amConnectedToDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Can be used with a callback if you don't want to change the current database in your test. - * - * ```php - * seeNumRecords(2, 'users'); //executed on default database - * $I->performInDatabase('db_books', function($I) { - * $I->seeNumRecords(30, 'books'); //executed on db_books database - * }); - * $I->seeNumRecords(2, 'users'); //executed on default database - * ``` - * List of actions can be pragmatically built using `Codeception\Util\ActionSequence`: - * - * ```php - * performInDatabase('db_books', ActionSequence::build() - * ->seeNumRecords(30, 'books') - * ); - * ``` - * Alternatively an array can be used: - * - * ```php - * $I->performInDatabase('db_books', ['seeNumRecords' => [30, 'books']]); - * ``` - * - * Choose the syntax you like the most and use it, - * - * Actions executed from array or ActionSequence will print debug output for actions, and adds an action name to - * exception on failure. - * - * @param $databaseKey - * @param ActionSequence|array|callable $actions - * @throws ModuleConfigException - * @see \Codeception\Module\Db::performInDatabase() - */ - public function performInDatabase($databaseKey, $actions): void { - $this->getScenario()->runStep(new \Codeception\Step\Action('performInDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Inserts an SQL record into a database. This record will be erased after the test, - * unless you've configured "skip_cleanup_if_failed", and the test fails. - * - * ```php - * haveInDatabase('users', array('name' => 'miles', 'email' => 'miles@davis.com')); - * ``` - * @see \Codeception\Module\Db::haveInDatabase() - */ - public function haveInDatabase(string $table, array $data): int { - return $this->getScenario()->runStep(new \Codeception\Step\Action('haveInDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Asserts that a row with the given column values exists. - * Provide table name and column values. - * - * ```php - * seeInDatabase('users', ['name' => 'Davert', 'email' => 'davert@mail.com']); - * ``` - * Fails if no such user found. - * - * Comparison expressions can be used as well: - * - * ```php - * seeInDatabase('posts', ['num_comments >=' => '0']); - * $I->seeInDatabase('users', ['email like' => 'miles@davis.com']); - * ``` - * - * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. - * @see \Codeception\Module\Db::seeInDatabase() - */ - public function seeInDatabase(string $table, array $criteria = []): void { - $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInDatabase', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * [!] Conditional Assertion: Test won't be stopped on fail - * Asserts that a row with the given column values exists. - * Provide table name and column values. - * - * ```php - * seeInDatabase('users', ['name' => 'Davert', 'email' => 'davert@mail.com']); - * ``` - * Fails if no such user found. - * - * Comparison expressions can be used as well: - * - * ```php - * seeInDatabase('posts', ['num_comments >=' => '0']); - * $I->seeInDatabase('users', ['email like' => 'miles@davis.com']); - * ``` - * - * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. - * @see \Codeception\Module\Db::seeInDatabase() - */ - public function canSeeInDatabase(string $table, array $criteria = []): void { - $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Asserts that the given number of records were found in the database. - * - * ```php - * seeNumRecords(1, 'users', ['name' => 'davert']) - * ``` - * - * @param int $expectedNumber Expected number - * @param string $table Table name - * @param array $criteria Search criteria [Optional] - * @see \Codeception\Module\Db::seeNumRecords() - */ - public function seeNumRecords(int $expectedNumber, string $table, array $criteria = []): void { - $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumRecords', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * [!] Conditional Assertion: Test won't be stopped on fail - * Asserts that the given number of records were found in the database. - * - * ```php - * seeNumRecords(1, 'users', ['name' => 'davert']) - * ``` - * - * @param int $expectedNumber Expected number - * @param string $table Table name - * @param array $criteria Search criteria [Optional] - * @see \Codeception\Module\Db::seeNumRecords() - */ - public function canSeeNumRecords(int $expectedNumber, string $table, array $criteria = []): void { - $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumRecords', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Effect is opposite to ->seeInDatabase - * - * Asserts that there is no record with the given column values in a database. - * Provide table name and column values. - * - * ``` php - * dontSeeInDatabase('users', ['name' => 'Davert', 'email' => 'davert@mail.com']); - * ``` - * Fails if such user was found. - * - * Comparison expressions can be used as well: - * - * ```php - * dontSeeInDatabase('posts', ['num_comments >=' => '0']); - * $I->dontSeeInDatabase('users', ['email like' => 'miles%']); - * ``` - * - * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. - * @see \Codeception\Module\Db::dontSeeInDatabase() - */ - public function dontSeeInDatabase(string $table, array $criteria = []): void { - $this->getScenario()->runStep(new \Codeception\Step\Action('dontSeeInDatabase', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * [!] Conditional Assertion: Test won't be stopped on fail - * Effect is opposite to ->seeInDatabase - * - * Asserts that there is no record with the given column values in a database. - * Provide table name and column values. - * - * ``` php - * dontSeeInDatabase('users', ['name' => 'Davert', 'email' => 'davert@mail.com']); - * ``` - * Fails if such user was found. - * - * Comparison expressions can be used as well: - * - * ```php - * dontSeeInDatabase('posts', ['num_comments >=' => '0']); - * $I->dontSeeInDatabase('users', ['email like' => 'miles%']); - * ``` - * - * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. - * @see \Codeception\Module\Db::dontSeeInDatabase() - */ - public function cantSeeInDatabase(string $table, array $criteria = []): void { - $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Fetches all values from the column in database. - * Provide table name, desired column and criteria. - * - * ``` php - * grabColumnFromDatabase('users', 'email', array('name' => 'RebOOter')); - * ``` - * @see \Codeception\Module\Db::grabColumnFromDatabase() - */ - public function grabColumnFromDatabase(string $table, string $column, array $criteria = []): array { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabColumnFromDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Fetches a single column value from a database. - * Provide table name, desired column and criteria. - * - * ``` php - * grabFromDatabase('users', 'email', array('name' => 'Davert')); - * ``` - * Comparison expressions can be used as well: - * - * ```php - * grabFromDatabase('posts', 'num_comments', ['num_comments >=' => 100]); - * $mail = $I->grabFromDatabase('users', 'email', ['email like' => 'miles%']); - * ``` - * - * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. - * - * @return mixed Returns a single column value or false - * @see \Codeception\Module\Db::grabFromDatabase() - */ - public function grabFromDatabase(string $table, string $column, array $criteria = []) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Fetches a whole entry from a database. - * Make the test fail if the entry is not found. - * Provide table name, desired column and criteria. - * - * ``` php - * grabEntryFromDatabase('users', array('name' => 'Davert')); - * ``` - * Comparison expressions can be used as well: - * - * ```php - * grabEntryFromDatabase('posts', ['num_comments >=' => 100]); - * $user = $I->grabEntryFromDatabase('users', ['email like' => 'miles%']); - * ``` - * - * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. - * - * @return array Returns a single entry value - * @throws PDOException|Exception - * @see \Codeception\Module\Db::grabEntryFromDatabase() - */ - public function grabEntryFromDatabase(string $table, array $criteria = []): array { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabEntryFromDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Fetches a set of entries from a database. - * Provide table name and criteria. - * - * ``` php - * grabEntriesFromDatabase('users', array('name' => 'Davert')); - * ``` - * Comparison expressions can be used as well: - * - * ```php - * grabEntriesFromDatabase('posts', ['num_comments >=' => 100]); - * $user = $I->grabEntriesFromDatabase('users', ['email like' => 'miles%']); - * ``` - * - * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. - * - * @return array> Returns an array of all matched rows - * @throws PDOException|Exception - * @see \Codeception\Module\Db::grabEntriesFromDatabase() - */ - public function grabEntriesFromDatabase(string $table, array $criteria = []): array { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabEntriesFromDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Returns the number of rows in a database - * - * @param string $table Table name - * @param array $criteria Search criteria [Optional] - * @return int - * @see \Codeception\Module\Db::grabNumRecords() - */ - public function grabNumRecords(string $table, array $criteria = []): int { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabNumRecords', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Update an SQL record into a database. - * - * ```php - * updateInDatabase('users', array('isAdmin' => true), array('email' => 'miles@davis.com')); - * ``` - * @see \Codeception\Module\Db::updateInDatabase() - */ - public function updateInDatabase(string $table, array $data, array $criteria = []): void { - $this->getScenario()->runStep(new \Codeception\Step\Action('updateInDatabase', func_get_args())); - } - - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -398,7 +30,7 @@ public function grabValueFromApc(string $key): mixed { return $this->getScenario()->runStep(new \Codeception\Step\Action('grabValueFromApc', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -443,7 +75,7 @@ public function canSeeInApc(string $key, mixed $value = NULL): void { $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInApc', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -486,7 +118,7 @@ public function cantSeeInApc(string $key, mixed $value = NULL): void { $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInApc', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -516,7 +148,7 @@ public function haveInApc(string $key, mixed $value, int $expiration = 0): strin return $this->getScenario()->runStep(new \Codeception\Step\Action('haveInApc', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -527,7 +159,7 @@ public function flushApc(): void { $this->getScenario()->runStep(new \Codeception\Step\Action('flushApc', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -560,7 +192,7 @@ public function expectThrowable($throwable, callable $callback): void { $this->getScenario()->runStep(new \Codeception\Step\Action('expectThrowable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -571,7 +203,7 @@ public function assertFileNotExists(string $filename, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -585,7 +217,7 @@ public function assertGreaterOrEquals($expected, $actual, string $message = "") return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -598,7 +230,7 @@ public function assertIsEmpty($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -612,7 +244,7 @@ public function assertLessOrEquals($expected, $actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -623,7 +255,7 @@ public function assertNotRegExp(string $pattern, string $string, string $message return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -634,7 +266,7 @@ public function assertRegExp(string $pattern, string $string, string $message = return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -647,7 +279,7 @@ public function assertThatItsNot($value, \PHPUnit\Framework\Constraint\Constrain return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThatItsNot', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -661,7 +293,7 @@ public function assertArrayHasKey($key, $array, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -675,7 +307,7 @@ public function assertArrayNotHasKey($key, $array, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -686,7 +318,7 @@ public function assertClassHasAttribute(string $attributeName, string $className return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasAttribute', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -697,7 +329,7 @@ public function assertClassHasStaticAttribute(string $attributeName, string $cla return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasStaticAttribute', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -708,7 +340,7 @@ public function assertClassNotHasAttribute(string $attributeName, string $classN return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasAttribute', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -719,7 +351,7 @@ public function assertClassNotHasStaticAttribute(string $attributeName, string $ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasStaticAttribute', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -732,7 +364,7 @@ public function assertContains($needle, iterable $haystack, string $message = "" return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -743,7 +375,7 @@ public function assertContainsEquals($needle, iterable $haystack, string $messag return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsEquals', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -754,7 +386,7 @@ public function assertContainsOnly(string $type, iterable $haystack, ?bool $isNa return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnly', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -765,7 +397,7 @@ public function assertContainsOnlyInstancesOf(string $className, iterable $hayst return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnlyInstancesOf', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -778,7 +410,7 @@ public function assertCount(int $expectedCount, $haystack, string $message = "") return $this->getScenario()->runStep(new \Codeception\Step\Action('assertCount', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -789,7 +421,7 @@ public function assertDirectoryDoesNotExist(string $directory, string $message = return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryDoesNotExist', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -800,7 +432,7 @@ public function assertDirectoryExists(string $directory, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryExists', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -811,7 +443,7 @@ public function assertDirectoryIsNotReadable(string $directory, string $message return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsNotReadable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -822,7 +454,7 @@ public function assertDirectoryIsNotWritable(string $directory, string $message return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsNotWritable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -833,7 +465,7 @@ public function assertDirectoryIsReadable(string $directory, string $message = " return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsReadable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -844,7 +476,7 @@ public function assertDirectoryIsWritable(string $directory, string $message = " return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsWritable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -855,7 +487,7 @@ public function assertDoesNotMatchRegularExpression(string $pattern, string $str return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDoesNotMatchRegularExpression', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -868,7 +500,7 @@ public function assertEmpty($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -882,7 +514,7 @@ public function assertEquals($expected, $actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -896,7 +528,7 @@ public function assertEqualsCanonicalizing($expected, $actual, string $message = return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsCanonicalizing', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -910,7 +542,7 @@ public function assertEqualsIgnoringCase($expected, $actual, string $message = " return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsIgnoringCase', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -924,7 +556,7 @@ public function assertEqualsWithDelta($expected, $actual, float $delta, string $ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsWithDelta', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -937,7 +569,7 @@ public function assertFalse($condition, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -948,7 +580,7 @@ public function assertFileDoesNotExist(string $filename, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileDoesNotExist', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -959,7 +591,7 @@ public function assertFileEquals(string $expected, string $actual, string $messa return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEquals', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -970,7 +602,7 @@ public function assertFileEqualsCanonicalizing(string $expected, string $actual, return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsCanonicalizing', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -981,7 +613,7 @@ public function assertFileEqualsIgnoringCase(string $expected, string $actual, s return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsIgnoringCase', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -992,7 +624,7 @@ public function assertFileExists(string $filename, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1003,7 +635,7 @@ public function assertFileIsNotReadable(string $file, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsNotReadable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1014,7 +646,7 @@ public function assertFileIsNotWritable(string $file, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsNotWritable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1025,7 +657,7 @@ public function assertFileIsReadable(string $file, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsReadable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1036,7 +668,7 @@ public function assertFileIsWritable(string $file, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsWritable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1047,7 +679,7 @@ public function assertFileNotEquals(string $expected, string $actual, string $me return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEquals', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1058,7 +690,7 @@ public function assertFileNotEqualsCanonicalizing(string $expected, string $actu return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsCanonicalizing', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1069,7 +701,7 @@ public function assertFileNotEqualsIgnoringCase(string $expected, string $actual return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsIgnoringCase', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1082,7 +714,7 @@ public function assertFinite($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFinite', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1096,7 +728,7 @@ public function assertGreaterThan($expected, $actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1110,7 +742,7 @@ public function assertGreaterThanOrEqual($expected, $actual, string $message = " return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1123,7 +755,7 @@ public function assertInfinite($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInfinite', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1136,7 +768,7 @@ public function assertInstanceOf(string $expected, $actual, string $message = "" return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInstanceOf', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1149,7 +781,7 @@ public function assertIsArray($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsArray', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1162,7 +794,7 @@ public function assertIsBool($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsBool', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1175,7 +807,7 @@ public function assertIsCallable($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsCallable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1188,7 +820,7 @@ public function assertIsClosedResource($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsClosedResource', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1201,7 +833,7 @@ public function assertIsFloat($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsFloat', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1214,7 +846,7 @@ public function assertIsInt($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsInt', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1227,7 +859,7 @@ public function assertIsIterable($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsIterable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1240,7 +872,7 @@ public function assertIsNotArray($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotArray', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1253,7 +885,7 @@ public function assertIsNotBool($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotBool', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1266,7 +898,7 @@ public function assertIsNotCallable($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotCallable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1279,7 +911,7 @@ public function assertIsNotClosedResource($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotClosedResource', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1292,7 +924,7 @@ public function assertIsNotFloat($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotFloat', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1305,7 +937,7 @@ public function assertIsNotInt($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotInt', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1318,7 +950,7 @@ public function assertIsNotIterable($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotIterable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1331,7 +963,7 @@ public function assertIsNotNumeric($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotNumeric', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1344,7 +976,7 @@ public function assertIsNotObject($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotObject', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1355,7 +987,7 @@ public function assertIsNotReadable(string $filename, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotReadable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1368,7 +1000,7 @@ public function assertIsNotResource($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotResource', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1381,7 +1013,7 @@ public function assertIsNotScalar($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotScalar', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1394,7 +1026,7 @@ public function assertIsNotString($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotString', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1405,7 +1037,7 @@ public function assertIsNotWritable(string $filename, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotWritable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1418,7 +1050,7 @@ public function assertIsNumeric($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNumeric', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1431,7 +1063,7 @@ public function assertIsObject($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsObject', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1442,7 +1074,7 @@ public function assertIsReadable(string $filename, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsReadable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1455,7 +1087,7 @@ public function assertIsResource($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsResource', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1468,7 +1100,7 @@ public function assertIsScalar($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsScalar', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1481,7 +1113,7 @@ public function assertIsString($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsString', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1492,7 +1124,7 @@ public function assertIsWritable(string $filename, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsWritable', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1503,7 +1135,7 @@ public function assertJson(string $actualJson, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJson', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1514,7 +1146,7 @@ public function assertJsonFileEqualsJsonFile(string $expectedFile, string $actua return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileEqualsJsonFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1525,7 +1157,7 @@ public function assertJsonFileNotEqualsJsonFile(string $expectedFile, string $ac return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileNotEqualsJsonFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1536,7 +1168,7 @@ public function assertJsonStringEqualsJsonFile(string $expectedFile, string $act return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1547,7 +1179,7 @@ public function assertJsonStringEqualsJsonString(string $expectedJson, string $a return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonString', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1558,7 +1190,7 @@ public function assertJsonStringNotEqualsJsonFile(string $expectedFile, string $ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1569,7 +1201,7 @@ public function assertJsonStringNotEqualsJsonString(string $expectedJson, string return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonString', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1583,7 +1215,7 @@ public function assertLessThan($expected, $actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1597,7 +1229,7 @@ public function assertLessThanOrEqual($expected, $actual, string $message = "") return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1608,7 +1240,7 @@ public function assertMatchesRegularExpression(string $pattern, string $string, return $this->getScenario()->runStep(new \Codeception\Step\Action('assertMatchesRegularExpression', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1621,7 +1253,7 @@ public function assertNan($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNan', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1634,7 +1266,7 @@ public function assertNotContains($needle, iterable $haystack, string $message = return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1645,7 +1277,7 @@ public function assertNotContainsEquals($needle, iterable $haystack, string $mes return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsEquals', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1656,7 +1288,7 @@ public function assertNotContainsOnly(string $type, iterable $haystack, ?bool $i return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsOnly', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1669,7 +1301,7 @@ public function assertNotCount(int $expectedCount, $haystack, string $message = return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotCount', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1682,7 +1314,7 @@ public function assertNotEmpty($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1696,7 +1328,7 @@ public function assertNotEquals($expected, $actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1710,7 +1342,7 @@ public function assertNotEqualsCanonicalizing($expected, $actual, string $messag return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsCanonicalizing', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1724,7 +1356,7 @@ public function assertNotEqualsIgnoringCase($expected, $actual, string $message return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsIgnoringCase', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1738,7 +1370,7 @@ public function assertNotEqualsWithDelta($expected, $actual, float $delta, strin return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsWithDelta', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1751,7 +1383,7 @@ public function assertNotFalse($condition, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotFalse', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1764,7 +1396,7 @@ public function assertNotInstanceOf(string $expected, $actual, string $message = return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotInstanceOf', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1777,7 +1409,7 @@ public function assertNotNull($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1791,7 +1423,7 @@ public function assertNotSame($expected, $actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1805,7 +1437,7 @@ public function assertNotSameSize($expected, $actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSameSize', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1818,7 +1450,7 @@ public function assertNotTrue($condition, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotTrue', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1831,7 +1463,7 @@ public function assertNull($actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1842,7 +1474,7 @@ public function assertObjectHasAttribute(string $attributeName, object $object, return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectHasAttribute', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1853,7 +1485,7 @@ public function assertObjectNotHasAttribute(string $attributeName, object $objec return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectNotHasAttribute', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1867,7 +1499,7 @@ public function assertSame($expected, $actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1881,7 +1513,7 @@ public function assertSameSize($expected, $actual, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSameSize', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1892,7 +1524,7 @@ public function assertStringContainsString(string $needle, string $haystack, str return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsString', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1903,7 +1535,7 @@ public function assertStringContainsStringIgnoringCase(string $needle, string $h return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsStringIgnoringCase', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1914,7 +1546,7 @@ public function assertStringEndsNotWith(string $suffix, string $string, string $ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsNotWith', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1925,7 +1557,7 @@ public function assertStringEndsWith(string $suffix, string $string, string $mes return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsWith', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1936,7 +1568,7 @@ public function assertStringEqualsFile(string $expectedFile, string $actualStrin return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1947,7 +1579,7 @@ public function assertStringEqualsFileCanonicalizing(string $expectedFile, strin return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileCanonicalizing', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1958,7 +1590,7 @@ public function assertStringEqualsFileIgnoringCase(string $expectedFile, string return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileIgnoringCase', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1969,7 +1601,7 @@ public function assertStringMatchesFormat(string $format, string $string, string return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormat', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1980,7 +1612,7 @@ public function assertStringMatchesFormatFile(string $formatFile, string $string return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormatFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -1991,7 +1623,7 @@ public function assertStringNotContainsString(string $needle, string $haystack, return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsString', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2002,7 +1634,7 @@ public function assertStringNotContainsStringIgnoringCase(string $needle, string return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsStringIgnoringCase', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2013,7 +1645,7 @@ public function assertStringNotEqualsFile(string $expectedFile, string $actualSt return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2024,7 +1656,7 @@ public function assertStringNotEqualsFileCanonicalizing(string $expectedFile, st return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileCanonicalizing', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2035,7 +1667,7 @@ public function assertStringNotEqualsFileIgnoringCase(string $expectedFile, stri return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileIgnoringCase', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2046,7 +1678,7 @@ public function assertStringNotMatchesFormat(string $format, string $string, str return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormat', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2057,7 +1689,7 @@ public function assertStringNotMatchesFormatFile(string $formatFile, string $str return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormatFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2068,7 +1700,7 @@ public function assertStringStartsNotWith(string $prefix, string $string, string return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsNotWith', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2079,7 +1711,7 @@ public function assertStringStartsWith(string $prefix, string $string, string $m return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsWith', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2092,7 +1724,7 @@ public function assertThat($value, \PHPUnit\Framework\Constraint\Constraint $con return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThat', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2105,7 +1737,7 @@ public function assertTrue($condition, string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2116,7 +1748,7 @@ public function assertXmlFileEqualsXmlFile(string $expectedFile, string $actualF return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileEqualsXmlFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2127,7 +1759,7 @@ public function assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actu return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileNotEqualsXmlFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2140,7 +1772,7 @@ public function assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml, s return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2154,7 +1786,7 @@ public function assertXmlStringEqualsXmlString($expectedXml, $actualXml, string return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlString', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2167,7 +1799,7 @@ public function assertXmlStringNotEqualsXmlFile(string $expectedFile, $actualXml return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2181,7 +1813,7 @@ public function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, stri return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlString', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2192,7 +1824,7 @@ public function fail(string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2203,7 +1835,7 @@ public function markTestIncomplete(string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestIncomplete', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2214,7 +1846,7 @@ public function markTestSkipped(string $message = "") { return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestSkipped', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2226,7 +1858,7 @@ public function amInPath(string $path): void { $this->getScenario()->runStep(new \Codeception\Step\Condition('amInPath', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2245,7 +1877,7 @@ public function openFile(string $filename): void { $this->getScenario()->runStep(new \Codeception\Step\Action('openFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2261,7 +1893,7 @@ public function deleteFile(string $filename): void { $this->getScenario()->runStep(new \Codeception\Step\Action('deleteFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2277,7 +1909,7 @@ public function deleteDir(string $dirname): void { $this->getScenario()->runStep(new \Codeception\Step\Action('deleteDir', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2293,7 +1925,7 @@ public function copyDir(string $src, string $dst): void { $this->getScenario()->runStep(new \Codeception\Step\Action('copyDir', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2330,7 +1962,7 @@ public function canSeeInThisFile(string $text): void { $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInThisFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2371,7 +2003,7 @@ public function canSeeNumberNewLines(int $number): void { $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumberNewLines', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2392,7 +2024,7 @@ public function canSeeThisFileMatches(string $regex): void { $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeThisFileMatches', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2431,7 +2063,7 @@ public function canSeeFileContentsEqual(string $text): void { $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeFileContentsEqual', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2464,7 +2096,7 @@ public function cantSeeInThisFile(string $text): void { $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInThisFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2475,7 +2107,7 @@ public function deleteThisFile(): void { $this->getScenario()->runStep(new \Codeception\Step\Action('deleteThisFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2508,7 +2140,7 @@ public function canSeeFileFound(string $filename, string $path = ""): void { $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeFileFound', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2529,7 +2161,7 @@ public function cantSeeFileFound(string $filename, string $path = ""): void { $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeFileFound', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2545,7 +2177,7 @@ public function cleanDir(string $dirname): void { $this->getScenario()->runStep(new \Codeception\Step\Action('cleanDir', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2556,7 +2188,7 @@ public function writeToFile(string $filename, string $contents): void { $this->getScenario()->runStep(new \Codeception\Step\Action('writeToFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2567,7 +2199,7 @@ public function getDirSeparator(string $directory): string { return $this->getScenario()->runStep(new \Codeception\Step\Action('getDirSeparator', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2584,7 +2216,7 @@ public function callProtectedMethod($obj, string $method) { return $this->getScenario()->runStep(new \Codeception\Step\Action('callProtectedMethod', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2597,7 +2229,7 @@ public function checkExtensionIsLoaded(string $extension) { return $this->getScenario()->runStep(new \Codeception\Step\Action('checkExtensionIsLoaded', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2613,7 +2245,7 @@ public function getNewFileName(string $prefix = "", string $suffix = "log") { return $this->getScenario()->runStep(new \Codeception\Step\Action('getNewFileName', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2624,7 +2256,7 @@ public function getProtectedProperty($obj, $prop) { return $this->getScenario()->runStep(new \Codeception\Step\Action('getProtectedProperty', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2635,7 +2267,7 @@ public function safeDeleteDirectory(string $directory) { return $this->getScenario()->runStep(new \Codeception\Step\Action('safeDeleteDirectory', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2646,7 +2278,7 @@ public function safeDeleteFile(string $filename) { return $this->getScenario()->runStep(new \Codeception\Step\Action('safeDeleteFile', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * @@ -2657,7 +2289,7 @@ public function setProtectedProperty($obj, $prop, $value) { return $this->getScenario()->runStep(new \Codeception\Step\Action('setProtectedProperty', func_get_args())); } - + /** * [!] Method is generated. Documentation taken from corresponding module. * diff --git a/tests/database/Mvc/Model/Criteria/FromInputCest.php b/tests/database/Mvc/Model/Criteria/FromInputCest.php index 4dca558ee..add78508d 100644 --- a/tests/database/Mvc/Model/Criteria/FromInputCest.php +++ b/tests/database/Mvc/Model/Criteria/FromInputCest.php @@ -72,8 +72,8 @@ public function mvcModelCriteriaFromInputMysql(DatabaseTester $I): void . 'AND [inv_cst_id] = :inv_cst_id: ' . 'AND [inv_status_flag] = :inv_status_flag: ' . 'AND [inv_title] LIKE :inv_title: ' - . 'AND [inv_total] LIKE :inv_total: ' - . 'AND [inv_created_at] LIKE :inv_created_at:'; + . 'AND [inv_total] LIKE :inv_total: ' + . 'AND [inv_created_at] LIKE :inv_created_at:'; } else { $expected = 'SELECT [Phalcon\Tests\Models\Invoices].* ' . 'FROM [Phalcon\Tests\Models\Invoices] ' @@ -93,8 +93,8 @@ public function mvcModelCriteriaFromInputMysql(DatabaseTester $I): void 'inv_cst_id' => 2, 'inv_status_flag' => 3, 'inv_title' => '%title%', - 'inv_total' => '100.1', - 'inv_created_at' => '2020-12-25 01:02:03', + 'inv_total' => '%100.1%', + 'inv_created_at' => '%2020-12-25 01:02:03%', ]; } else { $expected = [ diff --git a/tests/database/Paginator/Adapter/Model/PaginateCest.php b/tests/database/Paginator/Adapter/Model/PaginateCest.php index 6427902df..58ab684f4 100644 --- a/tests/database/Paginator/Adapter/Model/PaginateCest.php +++ b/tests/database/Paginator/Adapter/Model/PaginateCest.php @@ -34,7 +34,7 @@ public function _before(DatabaseTester $I) $this->setDatabase($I); /** @var PDO $connection */ $connection = $I->getConnection(); - (new InvoicesMigration($connection))->create(); + (new InvoicesMigration($connection)); } /** diff --git a/tests/unit/Factory/ServicesCest.php b/tests/unit/Factory/ServicesCest.php deleted file mode 100644 index a0e3f96ad..000000000 --- a/tests/unit/Factory/ServicesCest.php +++ /dev/null @@ -1,54 +0,0 @@ - - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -declare(strict_types=1); - -namespace Phalcon\Tests\Unit\Factory; - -use Phalcon\Tests\Fixtures\Factory\TestFactory; -use Throwable; -use UnitTester; - -class ServicesCest -{ - /** - * Tests Phalcon\Factory\AbstractFactory :: getServices() - empty - * - * @param UnitTester $I - * - * @author Phalcon Team - * @since 2020-09-09 - */ - public function factoryGetServices(UnitTester $I) - { - $factory = new TestFactory([]); - $I->wantToTest('Factory\AbstractFactory - getServices - empty'); - $I->assertEmpty($factory->services()); - } - - /** - * Tests Phalcon\Factory\AbstractFactory :: getServices() - does not exist - * - * @param UnitTester $I - * - * @author Phalcon Team - * @since 2020-09-09 - */ - public function factoryGetServicesException(UnitTester $I) - { - $factory = new TestFactory([]); - $I->wantToTest('Factory\AbstractFactory - getServices - does not exist'); - try { - $factory->service('test'); - } catch (Throwable $exc) { - // Weird bug reports \Phalcon\Factory\Exception as \Exception - $I->assertEquals('Service test is not registered', $exc->getMessage()); - } - } -}