From 936dcbf68a0639c969792b9d011a0c5ec373c2d6 Mon Sep 17 00:00:00 2001 From: Marcel Folaron Date: Mon, 25 Nov 2024 18:09:30 -0500 Subject: [PATCH] fix code styles --- app/Command/CheckTranslations.php | 21 +- app/Core/Configuration/laravelConfig.php | 1 - app/Core/Http/HttpKernel.php | 2 +- app/Core/Middleware/AuthCheck.php | 2 +- app/Core/Providers/Authentication.php | 10 +- app/Core/Providers/Logging.php | 1 - app/Core/Providers/RateLimiter.php | 1 - app/Core/Providers/Redis.php | 2 +- app/Domain/Auth/Guards/LeantimeGuard.php | 11 +- app/Domain/Auth/Services/Auth.php | 3 +- app/Domain/Help/Composers/Helpermodal.php | 1 - .../Support/_generated/UnitTesterActions.php | 869 ++++++++++-------- tests/Unit/app/Core/ApiClientTest.php | 12 +- tests/Unit/app/Core/ApplicationUrlTest.php | 10 +- tests/Unit/app/Core/Events/EventsTest.php | 6 +- tests/Unit/app/Core/UI/ThemeTest.php | 4 +- .../Domain/Api/Controllers/JsonrpcTest.php | 8 +- .../Calendar/Services/CalendarServiceTest.php | 2 +- .../Menu/Repositories/MenuRepositoryTest.php | 12 +- tests/Unit/app/FormatTest.php | 6 +- 20 files changed, 559 insertions(+), 425 deletions(-) diff --git a/app/Command/CheckTranslations.php b/app/Command/CheckTranslations.php index 336f143a5a..3ff1e46534 100644 --- a/app/Command/CheckTranslations.php +++ b/app/Command/CheckTranslations.php @@ -4,8 +4,8 @@ use Illuminate\Console\Command; use Symfony\Component\Console\Attribute\AsCommand; -use Symfony\Component\Finder\Finder; use Symfony\Component\Console\Helper\ProgressBar; +use Symfony\Component\Finder\Finder; #[AsCommand( name: 'translations:check-unused', @@ -21,6 +21,7 @@ class CheckTranslations extends Command protected $description = 'Scan codebase for unused translation strings'; protected $translations = []; + protected $usedTranslations = []; public function handle() @@ -42,8 +43,9 @@ public function handle() private function parseLanguageFile(): void { $langFile = app_path('Language/en-US.ini'); - if (!file_exists($langFile)) { - $this->error('Language file not found: ' . $langFile); + if (! file_exists($langFile)) { + $this->error('Language file not found: '.$langFile); + return; } @@ -60,10 +62,10 @@ private function scanFiles(): void $excludeDirs = explode(',', $this->option('exclude')); if ($this->option('debug')) { - $this->info('Excluding directories: ' . implode(', ', $excludeDirs)); + $this->info('Excluding directories: '.implode(', ', $excludeDirs)); } - $finder = new Finder(); + $finder = new Finder; $finder->files() ->in(app_path()) ->name('*.php') @@ -97,10 +99,10 @@ private function scanFileForTranslations($file): void preg_quote($key, '/'), // Direct key usage preg_quote("'$key'", '/'), // Single quoted preg_quote("\"$key\"", '/'), // Double quoted - preg_quote('__("' . $key . '")', '/'), // PHP translation function + preg_quote('__("'.$key.'")', '/'), // PHP translation function preg_quote("__('$key')", '/'), // PHP translation function - preg_quote('$tpl->__("' . $key . '")', '/'), // Template translation - preg_quote('$tpl->__(\'' . $key . '\')', '/'), // Template translation + preg_quote('$tpl->__("'.$key.'")', '/'), // Template translation + preg_quote('$tpl->__(\''.$key.'\')', '/'), // Template translation ]; if ($this->option('debug')) { @@ -108,7 +110,7 @@ private function scanFileForTranslations($file): void } foreach ($patterns as $pattern) { - if (preg_match('/' . $pattern . '/', $content)) { + if (preg_match('/'.$pattern.'/', $content)) { if ($this->option('debug')) { $this->line(" - Found usage of key: {$key}"); } @@ -125,6 +127,7 @@ private function generateReport(): void if (empty($unusedTranslations)) { $this->info('No unused translations found.'); + return; } diff --git a/app/Core/Configuration/laravelConfig.php b/app/Core/Configuration/laravelConfig.php index b831482e25..9b5d1ad2e6 100644 --- a/app/Core/Configuration/laravelConfig.php +++ b/app/Core/Configuration/laravelConfig.php @@ -446,7 +446,6 @@ ], ], - ], /* |-------------------------------------------------------------------------- diff --git a/app/Core/Http/HttpKernel.php b/app/Core/Http/HttpKernel.php index ab340a3dae..323c57c5fa 100644 --- a/app/Core/Http/HttpKernel.php +++ b/app/Core/Http/HttpKernel.php @@ -75,7 +75,7 @@ class HttpKernel extends Kernel * @var array */ protected $middlewareAliases = [ - 'auth' => \Leantime\Core\Middleware\AuthCheck::class, + 'auth' => \Leantime\Core\Middleware\AuthCheck::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, diff --git a/app/Core/Middleware/AuthCheck.php b/app/Core/Middleware/AuthCheck.php index 884733eaf7..1062e2a6c6 100644 --- a/app/Core/Middleware/AuthCheck.php +++ b/app/Core/Middleware/AuthCheck.php @@ -80,7 +80,7 @@ public function handle(IncomingRequest $request, Closure $next): Response $loginRedirect = self::dispatch_filter('loginRoute', 'auth.login', ['request' => $request]); - if ( $request instanceof ApiRequest) { + if ($request instanceof ApiRequest) { self::dispatchEvent('before_api_request', ['application' => app()], 'leantime.core.middleware.apiAuth.handle'); } $authCheckResponse = $this->authenticate($request, array_keys($this->config->get('auth.guards')), $loginRedirect, $next); diff --git a/app/Core/Providers/Authentication.php b/app/Core/Providers/Authentication.php index 00761d70bb..e0ce5cf4c1 100644 --- a/app/Core/Providers/Authentication.php +++ b/app/Core/Providers/Authentication.php @@ -2,19 +2,15 @@ namespace Leantime\Core\Providers; -use Illuminate\Contracts\Auth\Factory as AuthFactory; use Illuminate\Support\ServiceProvider; -use Leantime\Domain\Api\Services\Api; use Leantime\Domain\Auth\Guards\ApiGuard; use Leantime\Domain\Auth\Guards\LeantimeGuard; use Leantime\Domain\Auth\Providers\LeantimeUserProvider; use Leantime\Domain\Auth\Services\Auth as AuthService; use Leantime\Domain\Oidc\Services\Oidc as OidcService; -use Illuminate\Support\Facades\Auth; class Authentication extends ServiceProvider { - /** * Register any application services. * @@ -47,9 +43,9 @@ public function boot() $this->app['auth']->extend('jsonRpc', function ($app, $name, array $config) { return new ApiGuard( - $app['auth']->createUserProvider($config['provider']), - $app->make(\Leantime\Domain\Api\Services\Api::class), - $app['request'] + $app['auth']->createUserProvider($config['provider']), + $app->make(\Leantime\Domain\Api\Services\Api::class), + $app['request'] ); }); } diff --git a/app/Core/Providers/Logging.php b/app/Core/Providers/Logging.php index 4938483021..073cd589ad 100644 --- a/app/Core/Providers/Logging.php +++ b/app/Core/Providers/Logging.php @@ -2,7 +2,6 @@ namespace Leantime\Core\Providers; -use Illuminate\Container\Container; use Illuminate\Log; use Illuminate\Support\ServiceProvider; diff --git a/app/Core/Providers/RateLimiter.php b/app/Core/Providers/RateLimiter.php index 6c5bed301c..29ff400831 100644 --- a/app/Core/Providers/RateLimiter.php +++ b/app/Core/Providers/RateLimiter.php @@ -2,7 +2,6 @@ namespace Leantime\Core\Providers; -use Illuminate\Container\Container; use Illuminate\Support\Facades\Cache; use Illuminate\Support\ServiceProvider; diff --git a/app/Core/Providers/Redis.php b/app/Core/Providers/Redis.php index a5d4e5bb3b..a871dd57d6 100644 --- a/app/Core/Providers/Redis.php +++ b/app/Core/Providers/Redis.php @@ -57,7 +57,7 @@ public function register() // Set cluster specific options $app['config']->set('redis.options', [ 'cluster' => 'redis', - 'parameters' => ['timeout' => 1.0] + 'parameters' => ['timeout' => 1.0], ]); } else { $app['config']->set('redis.cache', $cacheConfig); diff --git a/app/Domain/Auth/Guards/LeantimeGuard.php b/app/Domain/Auth/Guards/LeantimeGuard.php index 301219f43c..4f5e5a502c 100644 --- a/app/Domain/Auth/Guards/LeantimeGuard.php +++ b/app/Domain/Auth/Guards/LeantimeGuard.php @@ -2,15 +2,17 @@ namespace Leantime\Domain\Auth\Guards; +use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\UserProvider; -use Illuminate\Contracts\Auth\Authenticatable; use Leantime\Domain\Auth\Services\Auth as AuthService; class LeantimeGuard implements Guard { protected $provider; + protected $user; + protected AuthService $authService; public function __construct(UserProvider $provider, AuthService $authService) @@ -26,7 +28,7 @@ public function check() public function guest() { - return !$this->check(); + return ! $this->check(); } public function user() @@ -42,7 +44,8 @@ public function user() return $this->user; } - public function hasUser() { + public function hasUser() + { return $this->user ? true : false; } @@ -64,7 +67,7 @@ public function validate(array $credentials = []) public function setUser(Authenticatable $user) { $this->user = $user; + return $this; } - } diff --git a/app/Domain/Auth/Services/Auth.php b/app/Domain/Auth/Services/Auth.php index 1dd6682ba8..d9557c92f0 100644 --- a/app/Domain/Auth/Services/Auth.php +++ b/app/Domain/Auth/Services/Auth.php @@ -583,7 +583,8 @@ public function getRememberTokenName() return 'remember_token'; } - public function getUserById($id) { + public function getUserById($id) + { return (object) $this->userRepo->getUser($id); } } diff --git a/app/Domain/Help/Composers/Helpermodal.php b/app/Domain/Help/Composers/Helpermodal.php index c21273463f..0a5a1c9b5e 100644 --- a/app/Domain/Help/Composers/Helpermodal.php +++ b/app/Domain/Help/Composers/Helpermodal.php @@ -38,7 +38,6 @@ public function with(): array $currentModal = $this->helperService->getHelperModalByRoute($action); - if ( $completedOnboarding == '1' && $currentModal !== 'notfound' diff --git a/tests/Support/_generated/UnitTesterActions.php b/tests/Support/_generated/UnitTesterActions.php index bb2815fc76..079603b7dc 100644 --- a/tests/Support/_generated/UnitTesterActions.php +++ b/tests/Support/_generated/UnitTesterActions.php @@ -1,5 +1,8 @@ -getScenario()->runStep(new \Codeception\Step\Action('expectThrowable', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a file does not exist. + * * @see \Codeception\Module\AbstractAsserts::assertFileNotExists() */ - public function assertFileNotExists(string $filename, string $message = "") { + 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. * * Asserts that a value is greater than or equal to another value. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertGreaterOrEquals() */ - public function assertGreaterOrEquals($expected, $actual, string $message = "") { + 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. * * Asserts that a variable is empty. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsEmpty() */ - public function assertIsEmpty($actual, string $message = "") { + 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. * * Asserts that a value is smaller than or equal to another value. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertLessOrEquals() */ - public function assertLessOrEquals($expected, $actual, string $message = "") { + 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. * * Asserts that a string does not match a given regular expression. + * * @see \Codeception\Module\AbstractAsserts::assertNotRegExp() */ - public function assertNotRegExp(string $pattern, string $string, string $message = "") { + 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. * * Asserts that a string matches a given regular expression. + * * @see \Codeception\Module\AbstractAsserts::assertRegExp() */ - public function assertRegExp(string $pattern, string $string, string $message = "") { + 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. * * Evaluates a PHPUnit\Framework\Constraint matcher object. * - * @param mixed $value + * @param mixed $value + * * @see \Codeception\Module\AbstractAsserts::assertThatItsNot() */ - public function assertThatItsNot($value, \PHPUnit\Framework\Constraint\Constraint $constraint, string $message = "") { + public function assertThatItsNot($value, \PHPUnit\Framework\Constraint\Constraint $constraint, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThatItsNot', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that an array has a specified key. * - * @param int|string $key - * @param array|\ArrayAccess $array + * @param int|string $key + * @param array|\ArrayAccess $array + * * @see \Codeception\Module\AbstractAsserts::assertArrayHasKey() */ - public function assertArrayHasKey($key, $array, string $message = "") { + 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. * * Asserts that an array does not have a specified key. * - * @param int|string $key - * @param array|\ArrayAccess $array + * @param int|string $key + * @param array|\ArrayAccess $array + * * @see \Codeception\Module\AbstractAsserts::assertArrayNotHasKey() */ - public function assertArrayNotHasKey($key, $array, string $message = "") { + 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. * * Asserts that a class has a specified attribute. + * * @see \Codeception\Module\AbstractAsserts::assertClassHasAttribute() */ - public function assertClassHasAttribute(string $attributeName, string $className, string $message = "") { + public function assertClassHasAttribute(string $attributeName, string $className, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasAttribute', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a class has a specified static attribute. + * * @see \Codeception\Module\AbstractAsserts::assertClassHasStaticAttribute() */ - public function assertClassHasStaticAttribute(string $attributeName, string $className, string $message = "") { + public function assertClassHasStaticAttribute(string $attributeName, string $className, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasStaticAttribute', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a class does not have a specified attribute. + * * @see \Codeception\Module\AbstractAsserts::assertClassNotHasAttribute() */ - public function assertClassNotHasAttribute(string $attributeName, string $className, string $message = "") { + public function assertClassNotHasAttribute(string $attributeName, string $className, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasAttribute', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a class does not have a specified static attribute. + * * @see \Codeception\Module\AbstractAsserts::assertClassNotHasStaticAttribute() */ - public function assertClassNotHasStaticAttribute(string $attributeName, string $className, string $message = "") { + public function assertClassNotHasStaticAttribute(string $attributeName, string $className, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasStaticAttribute', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a haystack contains a needle. * - * @param mixed $needle + * @param mixed $needle + * * @see \Codeception\Module\AbstractAsserts::assertContains() */ - public function assertContains($needle, iterable $haystack, string $message = "") { + 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. * - * @param mixed $needle + * @param mixed $needle + * * @see \Codeception\Module\AbstractAsserts::assertContainsEquals() */ - public function assertContainsEquals($needle, iterable $haystack, string $message = "") { + public function assertContainsEquals($needle, iterable $haystack, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsEquals', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a haystack contains only values of a given type. + * * @see \Codeception\Module\AbstractAsserts::assertContainsOnly() */ - public function assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = NULL, string $message = "") { + public function assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = null, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnly', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a haystack contains only instances of a given class name. + * * @see \Codeception\Module\AbstractAsserts::assertContainsOnlyInstancesOf() */ - public function assertContainsOnlyInstancesOf(string $className, iterable $haystack, string $message = "") { + public function assertContainsOnlyInstancesOf(string $className, iterable $haystack, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnlyInstancesOf', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts the number of elements of an array, Countable or Traversable. * - * @param \Countable|iterable $haystack + * @param \Countable|iterable $haystack + * * @see \Codeception\Module\AbstractAsserts::assertCount() */ - public function assertCount(int $expectedCount, $haystack, string $message = "") { + 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. * * Asserts that a directory does not exist. + * * @see \Codeception\Module\AbstractAsserts::assertDirectoryDoesNotExist() */ - public function assertDirectoryDoesNotExist(string $directory, string $message = "") { + 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. * * Asserts that a directory exists. + * * @see \Codeception\Module\AbstractAsserts::assertDirectoryExists() */ - public function assertDirectoryExists(string $directory, string $message = "") { + 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. * * Asserts that a directory exists and is not readable. + * * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsNotReadable() */ - public function assertDirectoryIsNotReadable(string $directory, string $message = "") { + 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. * * Asserts that a directory exists and is not writable. + * * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsNotWritable() */ - public function assertDirectoryIsNotWritable(string $directory, string $message = "") { + 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. * * Asserts that a directory exists and is readable. + * * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsReadable() */ - public function assertDirectoryIsReadable(string $directory, string $message = "") { + 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. * * Asserts that a directory exists and is writable. + * * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsWritable() */ - public function assertDirectoryIsWritable(string $directory, string $message = "") { + 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. * * Asserts that a string does not match a given regular expression. + * * @see \Codeception\Module\AbstractAsserts::assertDoesNotMatchRegularExpression() */ - public function assertDoesNotMatchRegularExpression(string $pattern, string $string, string $message = "") { + public function assertDoesNotMatchRegularExpression(string $pattern, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDoesNotMatchRegularExpression', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a variable is empty. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertEmpty() */ - public function assertEmpty($actual, string $message = "") { + 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. * * Asserts that two variables are equal. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertEquals() */ - public function assertEquals($expected, $actual, string $message = "") { + 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. * * Asserts that two variables are equal (canonicalizing). * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertEqualsCanonicalizing() */ - public function assertEqualsCanonicalizing($expected, $actual, string $message = "") { + 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. * * Asserts that two variables are equal (ignoring case). * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertEqualsIgnoringCase() */ - public function assertEqualsIgnoringCase($expected, $actual, string $message = "") { + 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. * * Asserts that two variables are equal (with delta). * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertEqualsWithDelta() */ - public function assertEqualsWithDelta($expected, $actual, float $delta, string $message = "") { + public function assertEqualsWithDelta($expected, $actual, float $delta, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsWithDelta', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a condition is false. * - * @param mixed $condition + * @param mixed $condition + * * @see \Codeception\Module\AbstractAsserts::assertFalse() */ - public function assertFalse($condition, string $message = "") { + 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. * * Asserts that a file does not exist. + * * @see \Codeception\Module\AbstractAsserts::assertFileDoesNotExist() */ - public function assertFileDoesNotExist(string $filename, string $message = "") { + 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. * * Asserts that the contents of one file is equal to the contents of another file. + * * @see \Codeception\Module\AbstractAsserts::assertFileEquals() */ - public function assertFileEquals(string $expected, string $actual, string $message = "") { + public function assertFileEquals(string $expected, string $actual, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEquals', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of one file is equal to the contents of another file (canonicalizing). + * * @see \Codeception\Module\AbstractAsserts::assertFileEqualsCanonicalizing() */ - public function assertFileEqualsCanonicalizing(string $expected, string $actual, string $message = "") { + public function assertFileEqualsCanonicalizing(string $expected, string $actual, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsCanonicalizing', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of one file is equal to the contents of another file (ignoring case). + * * @see \Codeception\Module\AbstractAsserts::assertFileEqualsIgnoringCase() */ - public function assertFileEqualsIgnoringCase(string $expected, string $actual, string $message = "") { + public function assertFileEqualsIgnoringCase(string $expected, string $actual, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsIgnoringCase', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a file exists. + * * @see \Codeception\Module\AbstractAsserts::assertFileExists() */ - public function assertFileExists(string $filename, string $message = "") { + 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. * * Asserts that a file exists and is not readable. + * * @see \Codeception\Module\AbstractAsserts::assertFileIsNotReadable() */ - public function assertFileIsNotReadable(string $file, string $message = "") { + 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. * * Asserts that a file exists and is not writable. + * * @see \Codeception\Module\AbstractAsserts::assertFileIsNotWritable() */ - public function assertFileIsNotWritable(string $file, string $message = "") { + 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. * * Asserts that a file exists and is readable. + * * @see \Codeception\Module\AbstractAsserts::assertFileIsReadable() */ - public function assertFileIsReadable(string $file, string $message = "") { + 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. * * Asserts that a file exists and is writable. + * * @see \Codeception\Module\AbstractAsserts::assertFileIsWritable() */ - public function assertFileIsWritable(string $file, string $message = "") { + 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. * * Asserts that the contents of one file is not equal to the contents of another file. + * * @see \Codeception\Module\AbstractAsserts::assertFileNotEquals() */ - public function assertFileNotEquals(string $expected, string $actual, string $message = "") { + public function assertFileNotEquals(string $expected, string $actual, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEquals', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of one file is not equal to the contents of another file (canonicalizing). + * * @see \Codeception\Module\AbstractAsserts::assertFileNotEqualsCanonicalizing() */ - public function assertFileNotEqualsCanonicalizing(string $expected, string $actual, string $message = "") { + public function assertFileNotEqualsCanonicalizing(string $expected, string $actual, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsCanonicalizing', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of one file is not equal to the contents of another file (ignoring case). + * * @see \Codeception\Module\AbstractAsserts::assertFileNotEqualsIgnoringCase() */ - public function assertFileNotEqualsIgnoringCase(string $expected, string $actual, string $message = "") { + public function assertFileNotEqualsIgnoringCase(string $expected, string $actual, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsIgnoringCase', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a variable is finite. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertFinite() */ - public function assertFinite($actual, string $message = "") { + 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. * * Asserts that a value is greater than another value. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertGreaterThan() */ - public function assertGreaterThan($expected, $actual, string $message = "") { + 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. * * Asserts that a value is greater than or equal to another value. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertGreaterThanOrEqual() */ - public function assertGreaterThanOrEqual($expected, $actual, string $message = "") { + 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. * * Asserts that a variable is infinite. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertInfinite() */ - public function assertInfinite($actual, string $message = "") { + 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. * * Asserts that a variable is of a given type. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertInstanceOf() */ - public function assertInstanceOf(string $expected, $actual, string $message = "") { + 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. * * Asserts that a variable is of type array. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsArray() */ - public function assertIsArray($actual, string $message = "") { + 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. * * Asserts that a variable is of type bool. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsBool() */ - public function assertIsBool($actual, string $message = "") { + 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. * * Asserts that a variable is of type callable. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsCallable() */ - public function assertIsCallable($actual, string $message = "") { + 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. * * Asserts that a variable is of type resource and is closed. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsClosedResource() */ - public function assertIsClosedResource($actual, string $message = "") { + 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. * * Asserts that a variable is of type float. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsFloat() */ - public function assertIsFloat($actual, string $message = "") { + 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. * * Asserts that a variable is of type int. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsInt() */ - public function assertIsInt($actual, string $message = "") { + 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. * * Asserts that a variable is of type iterable. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsIterable() */ - public function assertIsIterable($actual, string $message = "") { + 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. * * Asserts that a variable is not of type array. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotArray() */ - public function assertIsNotArray($actual, string $message = "") { + 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. * * Asserts that a variable is not of type bool. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotBool() */ - public function assertIsNotBool($actual, string $message = "") { + 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. * * Asserts that a variable is not of type callable. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotCallable() */ - public function assertIsNotCallable($actual, string $message = "") { + 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. * * Asserts that a variable is not of type resource. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotClosedResource() */ - public function assertIsNotClosedResource($actual, string $message = "") { + 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. * * Asserts that a variable is not of type float. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotFloat() */ - public function assertIsNotFloat($actual, string $message = "") { + 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. * * Asserts that a variable is not of type int. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotInt() */ - public function assertIsNotInt($actual, string $message = "") { + 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. * * Asserts that a variable is not of type iterable. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotIterable() */ - public function assertIsNotIterable($actual, string $message = "") { + 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. * * Asserts that a variable is not of type numeric. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotNumeric() */ - public function assertIsNotNumeric($actual, string $message = "") { + 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. * * Asserts that a variable is not of type object. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotObject() */ - public function assertIsNotObject($actual, string $message = "") { + 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. * * Asserts that a file/dir exists and is not readable. + * * @see \Codeception\Module\AbstractAsserts::assertIsNotReadable() */ - public function assertIsNotReadable(string $filename, string $message = "") { + 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. * * Asserts that a variable is not of type resource. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotResource() */ - public function assertIsNotResource($actual, string $message = "") { + 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. * * Asserts that a variable is not of type scalar. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotScalar() */ - public function assertIsNotScalar($actual, string $message = "") { + 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. * * Asserts that a variable is not of type string. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNotString() */ - public function assertIsNotString($actual, string $message = "") { + 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. * * Asserts that a file/dir exists and is not writable. + * * @see \Codeception\Module\AbstractAsserts::assertIsNotWritable() */ - public function assertIsNotWritable(string $filename, string $message = "") { + 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. * * Asserts that a variable is of type numeric. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsNumeric() */ - public function assertIsNumeric($actual, string $message = "") { + 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. * * Asserts that a variable is of type object. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsObject() */ - public function assertIsObject($actual, string $message = "") { + 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. * * Asserts that a file/dir is readable. + * * @see \Codeception\Module\AbstractAsserts::assertIsReadable() */ - public function assertIsReadable(string $filename, string $message = "") { + 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. * * Asserts that a variable is of type resource. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsResource() */ - public function assertIsResource($actual, string $message = "") { + 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. * * Asserts that a variable is of type scalar. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsScalar() */ - public function assertIsScalar($actual, string $message = "") { + 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. * * Asserts that a variable is of type string. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertIsString() */ - public function assertIsString($actual, string $message = "") { + 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. * * Asserts that a file/dir exists and is writable. + * * @see \Codeception\Module\AbstractAsserts::assertIsWritable() */ - public function assertIsWritable(string $filename, string $message = "") { + 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. * * Asserts that a string is a valid JSON string. + * * @see \Codeception\Module\AbstractAsserts::assertJson() */ - public function assertJson(string $actualJson, string $message = "") { + 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. * * Asserts that two JSON files are equal. + * * @see \Codeception\Module\AbstractAsserts::assertJsonFileEqualsJsonFile() */ - public function assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile, string $message = "") { + public function assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileEqualsJsonFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two JSON files are not equal. + * * @see \Codeception\Module\AbstractAsserts::assertJsonFileNotEqualsJsonFile() */ - public function assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile, string $message = "") { + public function assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileNotEqualsJsonFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the generated JSON encoded object and the content of the given file are equal. + * * @see \Codeception\Module\AbstractAsserts::assertJsonStringEqualsJsonFile() */ - public function assertJsonStringEqualsJsonFile(string $expectedFile, string $actualJson, string $message = "") { + public function assertJsonStringEqualsJsonFile(string $expectedFile, string $actualJson, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two given JSON encoded objects or arrays are equal. + * * @see \Codeception\Module\AbstractAsserts::assertJsonStringEqualsJsonString() */ - public function assertJsonStringEqualsJsonString(string $expectedJson, string $actualJson, string $message = "") { + public function assertJsonStringEqualsJsonString(string $expectedJson, string $actualJson, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonString', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the generated JSON encoded object and the content of the given file are not equal. + * * @see \Codeception\Module\AbstractAsserts::assertJsonStringNotEqualsJsonFile() */ - public function assertJsonStringNotEqualsJsonFile(string $expectedFile, string $actualJson, string $message = "") { + public function assertJsonStringNotEqualsJsonFile(string $expectedFile, string $actualJson, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two given JSON encoded objects or arrays are not equal. + * * @see \Codeception\Module\AbstractAsserts::assertJsonStringNotEqualsJsonString() */ - public function assertJsonStringNotEqualsJsonString(string $expectedJson, string $actualJson, string $message = "") { + public function assertJsonStringNotEqualsJsonString(string $expectedJson, string $actualJson, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonString', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a value is smaller than another value. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertLessThan() */ - public function assertLessThan($expected, $actual, string $message = "") { + 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. * * Asserts that a value is smaller than or equal to another value. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertLessThanOrEqual() */ - public function assertLessThanOrEqual($expected, $actual, string $message = "") { + 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. * * Asserts that a string matches a given regular expression. + * * @see \Codeception\Module\AbstractAsserts::assertMatchesRegularExpression() */ - public function assertMatchesRegularExpression(string $pattern, string $string, string $message = "") { + public function assertMatchesRegularExpression(string $pattern, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertMatchesRegularExpression', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a variable is nan. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNan() */ - public function assertNan($actual, string $message = "") { + 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. * * Asserts that a haystack does not contain a needle. * - * @param mixed $needle + * @param mixed $needle + * * @see \Codeception\Module\AbstractAsserts::assertNotContains() */ - public function assertNotContains($needle, iterable $haystack, string $message = "") { + 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. * * * @see \Codeception\Module\AbstractAsserts::assertNotContainsEquals() */ - public function assertNotContainsEquals($needle, iterable $haystack, string $message = "") { + public function assertNotContainsEquals($needle, iterable $haystack, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsEquals', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a haystack does not contain only values of a given type. + * * @see \Codeception\Module\AbstractAsserts::assertNotContainsOnly() */ - public function assertNotContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = NULL, string $message = "") { + public function assertNotContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = null, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsOnly', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts the number of elements of an array, Countable or Traversable. * - * @param \Countable|iterable $haystack + * @param \Countable|iterable $haystack + * * @see \Codeception\Module\AbstractAsserts::assertNotCount() */ - public function assertNotCount(int $expectedCount, $haystack, string $message = "") { + 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. * * Asserts that a variable is not empty. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNotEmpty() */ - public function assertNotEmpty($actual, string $message = "") { + 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. * * Asserts that two variables are not equal. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNotEquals() */ - public function assertNotEquals($expected, $actual, string $message = "") { + 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. * * Asserts that two variables are not equal (canonicalizing). * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNotEqualsCanonicalizing() */ - public function assertNotEqualsCanonicalizing($expected, $actual, string $message = "") { + public function assertNotEqualsCanonicalizing($expected, $actual, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsCanonicalizing', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two variables are not equal (ignoring case). * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNotEqualsIgnoringCase() */ - public function assertNotEqualsIgnoringCase($expected, $actual, string $message = "") { + 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. * * Asserts that two variables are not equal (with delta). * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNotEqualsWithDelta() */ - public function assertNotEqualsWithDelta($expected, $actual, float $delta, string $message = "") { + public function assertNotEqualsWithDelta($expected, $actual, float $delta, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsWithDelta', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a condition is not false. * - * @param mixed $condition + * @param mixed $condition + * * @see \Codeception\Module\AbstractAsserts::assertNotFalse() */ - public function assertNotFalse($condition, string $message = "") { + 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. * * Asserts that a variable is not of a given type. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNotInstanceOf() */ - public function assertNotInstanceOf(string $expected, $actual, string $message = "") { + 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. * * Asserts that a variable is not null. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNotNull() */ - public function assertNotNull($actual, string $message = "") { + 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. * * Asserts that two variables do not have the same type and value. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNotSame() */ - public function assertNotSame($expected, $actual, string $message = "") { + 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. * * Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same. * - * @param \Countable|iterable $expected - * @param \Countable|iterable $actual + * @param \Countable|iterable $expected + * @param \Countable|iterable $actual + * * @see \Codeception\Module\AbstractAsserts::assertNotSameSize() */ - public function assertNotSameSize($expected, $actual, string $message = "") { + 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. * * Asserts that a condition is not true. * - * @param mixed $condition + * @param mixed $condition + * * @see \Codeception\Module\AbstractAsserts::assertNotTrue() */ - public function assertNotTrue($condition, string $message = "") { + 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. * * Asserts that a variable is null. * - * @param mixed $actual + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertNull() */ - public function assertNull($actual, string $message = "") { + 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. * * Asserts that an object has a specified attribute. + * * @see \Codeception\Module\AbstractAsserts::assertObjectHasAttribute() */ - public function assertObjectHasAttribute(string $attributeName, object $object, string $message = "") { + public function assertObjectHasAttribute(string $attributeName, object $object, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectHasAttribute', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that an object does not have a specified attribute. + * * @see \Codeception\Module\AbstractAsserts::assertObjectNotHasAttribute() */ - public function assertObjectNotHasAttribute(string $attributeName, object $object, string $message = "") { + public function assertObjectNotHasAttribute(string $attributeName, object $object, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectNotHasAttribute', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two variables have the same type and value. * - * @param mixed $expected - * @param mixed $actual + * @param mixed $expected + * @param mixed $actual + * * @see \Codeception\Module\AbstractAsserts::assertSame() */ - public function assertSame($expected, $actual, string $message = "") { + 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. * * Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same. * - * @param \Countable|iterable $expected - * @param \Countable|iterable $actual + * @param \Countable|iterable $expected + * @param \Countable|iterable $actual + * * @see \Codeception\Module\AbstractAsserts::assertSameSize() */ - public function assertSameSize($expected, $actual, string $message = "") { + 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. * * * @see \Codeception\Module\AbstractAsserts::assertStringContainsString() */ - public function assertStringContainsString(string $needle, string $haystack, string $message = "") { + public function assertStringContainsString(string $needle, string $haystack, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsString', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * * @see \Codeception\Module\AbstractAsserts::assertStringContainsStringIgnoringCase() */ - public function assertStringContainsStringIgnoringCase(string $needle, string $haystack, string $message = "") { + public function assertStringContainsStringIgnoringCase(string $needle, string $haystack, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsStringIgnoringCase', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a string ends not with a given suffix. + * * @see \Codeception\Module\AbstractAsserts::assertStringEndsNotWith() */ - public function assertStringEndsNotWith(string $suffix, string $string, string $message = "") { + public function assertStringEndsNotWith(string $suffix, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsNotWith', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a string ends with a given suffix. + * * @see \Codeception\Module\AbstractAsserts::assertStringEndsWith() */ - public function assertStringEndsWith(string $suffix, string $string, string $message = "") { + public function assertStringEndsWith(string $suffix, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsWith', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of a string is equal to the contents of a file. + * * @see \Codeception\Module\AbstractAsserts::assertStringEqualsFile() */ - public function assertStringEqualsFile(string $expectedFile, string $actualString, string $message = "") { + public function assertStringEqualsFile(string $expectedFile, string $actualString, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of a string is equal to the contents of a file (canonicalizing). + * * @see \Codeception\Module\AbstractAsserts::assertStringEqualsFileCanonicalizing() */ - public function assertStringEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = "") { + public function assertStringEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileCanonicalizing', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of a string is equal to the contents of a file (ignoring case). + * * @see \Codeception\Module\AbstractAsserts::assertStringEqualsFileIgnoringCase() */ - public function assertStringEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = "") { + public function assertStringEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileIgnoringCase', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a string matches a given format string. + * * @see \Codeception\Module\AbstractAsserts::assertStringMatchesFormat() */ - public function assertStringMatchesFormat(string $format, string $string, string $message = "") { + public function assertStringMatchesFormat(string $format, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormat', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a string matches a given format file. + * * @see \Codeception\Module\AbstractAsserts::assertStringMatchesFormatFile() */ - public function assertStringMatchesFormatFile(string $formatFile, string $string, string $message = "") { + public function assertStringMatchesFormatFile(string $formatFile, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormatFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * * @see \Codeception\Module\AbstractAsserts::assertStringNotContainsString() */ - public function assertStringNotContainsString(string $needle, string $haystack, string $message = "") { + public function assertStringNotContainsString(string $needle, string $haystack, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsString', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * * @see \Codeception\Module\AbstractAsserts::assertStringNotContainsStringIgnoringCase() */ - public function assertStringNotContainsStringIgnoringCase(string $needle, string $haystack, string $message = "") { + public function assertStringNotContainsStringIgnoringCase(string $needle, string $haystack, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsStringIgnoringCase', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of a string is not equal to the contents of a file. + * * @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFile() */ - public function assertStringNotEqualsFile(string $expectedFile, string $actualString, string $message = "") { + public function assertStringNotEqualsFile(string $expectedFile, string $actualString, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of a string is not equal to the contents of a file (canonicalizing). + * * @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFileCanonicalizing() */ - public function assertStringNotEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = "") { + public function assertStringNotEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileCanonicalizing', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that the contents of a string is not equal to the contents of a file (ignoring case). + * * @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFileIgnoringCase() */ - public function assertStringNotEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = "") { + public function assertStringNotEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileIgnoringCase', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a string does not match a given format string. + * * @see \Codeception\Module\AbstractAsserts::assertStringNotMatchesFormat() */ - public function assertStringNotMatchesFormat(string $format, string $string, string $message = "") { + public function assertStringNotMatchesFormat(string $format, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormat', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a string does not match a given format string. + * * @see \Codeception\Module\AbstractAsserts::assertStringNotMatchesFormatFile() */ - public function assertStringNotMatchesFormatFile(string $formatFile, string $string, string $message = "") { + public function assertStringNotMatchesFormatFile(string $formatFile, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormatFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a string starts not with a given prefix. + * * @see \Codeception\Module\AbstractAsserts::assertStringStartsNotWith() */ - public function assertStringStartsNotWith(string $prefix, string $string, string $message = "") { + public function assertStringStartsNotWith(string $prefix, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsNotWith', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a string starts with a given prefix. + * * @see \Codeception\Module\AbstractAsserts::assertStringStartsWith() */ - public function assertStringStartsWith(string $prefix, string $string, string $message = "") { + public function assertStringStartsWith(string $prefix, string $string, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsWith', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Evaluates a PHPUnit\Framework\Constraint matcher object. * - * @param mixed $value + * @param mixed $value + * * @see \Codeception\Module\AbstractAsserts::assertThat() */ - public function assertThat($value, \PHPUnit\Framework\Constraint\Constraint $constraint, string $message = "") { + public function assertThat($value, \PHPUnit\Framework\Constraint\Constraint $constraint, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThat', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that a condition is true. * - * @param mixed $condition + * @param mixed $condition + * * @see \Codeception\Module\AbstractAsserts::assertTrue() */ - public function assertTrue($condition, string $message = "") { + 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. * * Asserts that two XML files are equal. + * * @see \Codeception\Module\AbstractAsserts::assertXmlFileEqualsXmlFile() */ - public function assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile, string $message = "") { + public function assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileEqualsXmlFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two XML files are not equal. + * * @see \Codeception\Module\AbstractAsserts::assertXmlFileNotEqualsXmlFile() */ - public function assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile, string $message = "") { + public function assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileNotEqualsXmlFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two XML documents are equal. * - * @param \DOMDocument|string $actualXml + * @param \DOMDocument|string $actualXml + * * @see \Codeception\Module\AbstractAsserts::assertXmlStringEqualsXmlFile() */ - public function assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml, string $message = "") { + public function assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two XML documents are equal. * - * @param \DOMDocument|string $expectedXml - * @param \DOMDocument|string $actualXml + * @param \DOMDocument|string $expectedXml + * @param \DOMDocument|string $actualXml + * * @see \Codeception\Module\AbstractAsserts::assertXmlStringEqualsXmlString() */ - public function assertXmlStringEqualsXmlString($expectedXml, $actualXml, string $message = "") { + public function assertXmlStringEqualsXmlString($expectedXml, $actualXml, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlString', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two XML documents are not equal. * - * @param \DOMDocument|string $actualXml + * @param \DOMDocument|string $actualXml + * * @see \Codeception\Module\AbstractAsserts::assertXmlStringNotEqualsXmlFile() */ - public function assertXmlStringNotEqualsXmlFile(string $expectedFile, $actualXml, string $message = "") { + public function assertXmlStringNotEqualsXmlFile(string $expectedFile, $actualXml, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlFile', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Asserts that two XML documents are not equal. * - * @param \DOMDocument|string $expectedXml - * @param \DOMDocument|string $actualXml + * @param \DOMDocument|string $expectedXml + * @param \DOMDocument|string $actualXml + * * @see \Codeception\Module\AbstractAsserts::assertXmlStringNotEqualsXmlString() */ - public function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, string $message = "") { + public function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlString', func_get_args())); } - /** * [!] Method is generated. Documentation taken from corresponding module. * * Fails a test with the given message. + * * @see \Codeception\Module\AbstractAsserts::fail() */ - public function fail(string $message = "") { + 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. * * Mark the test as incomplete. + * * @see \Codeception\Module\AbstractAsserts::markTestIncomplete() */ - public function markTestIncomplete(string $message = "") { + 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. * * Mark the test as skipped. + * * @see \Codeception\Module\AbstractAsserts::markTestSkipped() */ - public function markTestSkipped(string $message = "") { + public function markTestSkipped(string $message = '') + { return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestSkipped', func_get_args())); } } diff --git a/tests/Unit/app/Core/ApiClientTest.php b/tests/Unit/app/Core/ApiClientTest.php index 6dae43cd4a..445bd9830f 100644 --- a/tests/Unit/app/Core/ApiClientTest.php +++ b/tests/Unit/app/Core/ApiClientTest.php @@ -7,7 +7,7 @@ class ApiClientTest extends \Unit\TestCase { - public function testOAuth2(): void + public function test_o_auth2(): void { $baseUri = 'http://test.com'; $stack = HandlerStack::create(); @@ -20,7 +20,7 @@ public function testOAuth2(): void $this->assertEquals('oauth', $client->getConfig('auth')); } - public function testOAuth2Grants(): void + public function test_o_auth2_grants(): void { $baseUri = 'http://test.com'; $creds = [ @@ -33,7 +33,7 @@ public function testOAuth2Grants(): void $this->assertInstanceOf(HandlerStack::class, $stack); } - public function testOAuth1(): void + public function test_o_auth1(): void { $baseUri = 'http://test.com'; $creds = [ @@ -49,7 +49,7 @@ public function testOAuth1(): void $this->assertEquals('oauth', $client->getConfig('auth')); } - public function testBasicAuth(): void + public function test_basic_auth(): void { $baseUri = 'http://test.com'; $creds = [ @@ -63,7 +63,7 @@ public function testBasicAuth(): void $this->assertEquals($creds, $client->getConfig('auth')); } - public function testDigest(): void + public function test_digest(): void { $baseUri = 'http://test.com'; $creds = [ @@ -79,7 +79,7 @@ public function testDigest(): void $this->assertEquals($creds, $config[1]['auth']); } - public function testNtlm(): void + public function test_ntlm(): void { $baseUri = 'http://test.com'; $creds = [ diff --git a/tests/Unit/app/Core/ApplicationUrlTest.php b/tests/Unit/app/Core/ApplicationUrlTest.php index 7b46da66c9..c5c354db5e 100644 --- a/tests/Unit/app/Core/ApplicationUrlTest.php +++ b/tests/Unit/app/Core/ApplicationUrlTest.php @@ -33,7 +33,7 @@ protected function bootstrapApplication() $this->config = $this->app['config']; } - public function testBaseUrlIsSetCorrectlyFromConfig(): void + public function test_base_url_is_set_correctly_from_config(): void { // Test default behavior (no LEAN_APP_URL set) $this->assertEquals('http://localhost', BASE_URL); @@ -52,7 +52,7 @@ public function testBaseUrlIsSetCorrectlyFromConfig(): void $this->assertEquals('https://example.com', $this->config->get('appUrl')); } - public function testBaseUrlHandlesTrailingSlash(): void + public function test_base_url_handles_trailing_slash(): void { $_ENV['LEAN_APP_URL'] = 'https://example.com/'; @@ -63,7 +63,7 @@ public function testBaseUrlHandlesTrailingSlash(): void $this->assertEquals('https://example.com', $this->config->get('appUrl')); } - public function testBaseUrlHandlesSubdirectory(): void + public function test_base_url_handles_subdirectory(): void { $_ENV['LEAN_APP_URL'] = 'https://example.com/leantime'; @@ -74,7 +74,7 @@ public function testBaseUrlHandlesSubdirectory(): void $this->assertEquals('https://example.com/leantime', $this->config->get('appUrl')); } - public function testBaseUrlHandlesPort(): void + public function test_base_url_handles_port(): void { $_ENV['LEAN_APP_URL'] = 'https://example.com:8443'; @@ -85,7 +85,7 @@ public function testBaseUrlHandlesPort(): void $this->assertEquals('https://example.com:8443', $this->config->get('appUrl')); } - public function testBaseUrlHandlesReverseProxy(): void + public function test_base_url_handles_reverse_proxy(): void { // Simulate reverse proxy headers $_SERVER['HTTP_X_FORWARDED_PROTO'] = 'https'; diff --git a/tests/Unit/app/Core/Events/EventsTest.php b/tests/Unit/app/Core/Events/EventsTest.php index 45e8fe237a..a5bf1aa691 100644 --- a/tests/Unit/app/Core/Events/EventsTest.php +++ b/tests/Unit/app/Core/Events/EventsTest.php @@ -11,7 +11,7 @@ class EventsTest extends Unit * This test will check the dispatch_event method of the EventDispatcher class. * It will dispatch an event and assert if it is added to the available_hooks array. */ - public function testDispatchEvent() + public function test_dispatch_event() { $eventName = 'test.event.name'; $payload = ['testKey' => 'testValue']; @@ -30,7 +30,7 @@ public function testDispatchEvent() /** * This test will check the findEventListeners method of the EventDispatcher class. */ - public function testFindEventListeners() + public function test_find_event_listeners() { $eventName = 'test.event.name'; $listenerName = 'test.listener'; @@ -48,7 +48,7 @@ public function testFindEventListeners() * It will add new event listener and a new filter listener and check both listeners * are in the registry arrays. */ - public function testGetRegistries() + public function test_get_registries() { $eventName = 'event.test.name'; $filterName = 'filter.test.name'; diff --git a/tests/Unit/app/Core/UI/ThemeTest.php b/tests/Unit/app/Core/UI/ThemeTest.php index 70aa891b81..da40276da1 100644 --- a/tests/Unit/app/Core/UI/ThemeTest.php +++ b/tests/Unit/app/Core/UI/ThemeTest.php @@ -65,7 +65,7 @@ protected function _after() /** * Test GetMenuTypes method */ - public function testGetDefaultColorSchemeWithColorEnvSet() + public function test_get_default_color_scheme_with_color_env_set() { //Load class to be tested @@ -84,7 +84,7 @@ public function testGetDefaultColorSchemeWithColorEnvSet() /** * Test GetMenuTypes method */ - public function testGetDefaultColorSchemeWithoutEnv() + public function test_get_default_color_scheme_without_env() { $configMock = $this->make(Environment::class, []); diff --git a/tests/Unit/app/Domain/Api/Controllers/JsonrpcTest.php b/tests/Unit/app/Domain/Api/Controllers/JsonrpcTest.php index 7ae5b2a3fb..755839bad6 100644 --- a/tests/Unit/app/Domain/Api/Controllers/JsonrpcTest.php +++ b/tests/Unit/app/Domain/Api/Controllers/JsonrpcTest.php @@ -32,7 +32,7 @@ protected function setUp(): void $_SERVER['REQUEST_METHOD'] = 'post'; } - public function testMethodStringParsing() + public function test_method_string_parsing() { $params = [ 'method' => 'leantime.rpc.Comments.pollComments', @@ -53,7 +53,7 @@ public function testMethodStringParsing() $this->controller->post($params); } - public function testInvalidMethodString() + public function test_invalid_method_string() { $params = [ 'method' => 'invalid.method.string', @@ -74,7 +74,7 @@ public function testInvalidMethodString() $this->controller->post($params); } - public function testMissingJsonRpcVersion() + public function test_missing_json_rpc_version() { $params = [ 'method' => 'leantime.rpc.Comments.pollComments', @@ -94,7 +94,7 @@ public function testMissingJsonRpcVersion() $this->controller->post($params); } - public function testBatchRequest() + public function test_batch_request() { $params = [ [ diff --git a/tests/Unit/app/Domain/Calendar/Services/CalendarServiceTest.php b/tests/Unit/app/Domain/Calendar/Services/CalendarServiceTest.php index fe17c16c89..9998565a81 100644 --- a/tests/Unit/app/Domain/Calendar/Services/CalendarServiceTest.php +++ b/tests/Unit/app/Domain/Calendar/Services/CalendarServiceTest.php @@ -69,7 +69,7 @@ protected function _after() /** * Test GetMenuTypes method */ - public function testGetICalUrl() + public function test_get_i_cal_url() { //Sha is generated from id -1 and sessionpassword 123abc diff --git a/tests/Unit/app/Domain/Menu/Repositories/MenuRepositoryTest.php b/tests/Unit/app/Domain/Menu/Repositories/MenuRepositoryTest.php index 3f681bb6a0..c4b845cff5 100644 --- a/tests/Unit/app/Domain/Menu/Repositories/MenuRepositoryTest.php +++ b/tests/Unit/app/Domain/Menu/Repositories/MenuRepositoryTest.php @@ -62,7 +62,7 @@ protected function _after() /** * Test GetMenuTypes method */ - public function testGetMenuTypes() + public function test_get_menu_types() { $result = $this->menu->getMenuTypes(); @@ -75,7 +75,7 @@ public function testGetMenuTypes() // Further assertions can be done depending on use case and requirements } - public function testGetDefaultMenuStructure() + public function test_get_default_menu_structure() { $expected = $this->menu::DEFAULT_MENU; $defaultStructure = $this->menu->getMenuStructure(); @@ -89,7 +89,7 @@ public function testGetDefaultMenuStructure() $this->assertEquals($this->menu->menuStructures[$expected], $defaultStructure, 'Default menu structure does not match the expected structure'); } - public function testGetFullMenuStructure() + public function test_get_full_menu_structure() { $expected = 'full_menu'; $fullMenuStructure = $this->menu->getMenuStructure('full_menu'); @@ -98,14 +98,14 @@ public function testGetFullMenuStructure() $this->assertEquals($this->menu->menuStructures[$expected], $fullMenuStructure, 'Full menu structure does not match the expected structure'); } - public function testGetInvalidMenuStructure() + public function test_get_invalid_menu_structure() { $expected = []; $invalidMenuStructure = $this->menu->getMenuStructure('invalid'); $this->assertEquals($expected, $invalidMenuStructure, 'Invalid menu structure does not match the expected structure'); } - public function testGetFilteredMenuStructure() + public function test_get_filtered_menu_structure() { \Leantime\Core\Events\EventDispatcher::add_filter_listener('leantime.domain.menu.repositories.menu.getMenuStructure.menuStructures.company', function ($menu) { @@ -125,7 +125,7 @@ public function testGetFilteredMenuStructure() } - public function testInjectNewProjectMenuType() + public function test_inject_new_project_menu_type() { \Leantime\Core\Events\EventDispatcher::add_filter_listener('leantime.domain.menu.repositories.menu.getMenuStructure.menuStructures', function ($menuStructure) { diff --git a/tests/Unit/app/FormatTest.php b/tests/Unit/app/FormatTest.php index a6d6606fec..a9f300e4a2 100644 --- a/tests/Unit/app/FormatTest.php +++ b/tests/Unit/app/FormatTest.php @@ -41,7 +41,7 @@ protected function setUp(): void } - public function testDate(): void + public function test_date(): void { $formattedDateString = '12/31/2021'; $dbDate = '2022-01-01 00:00:00'; @@ -50,7 +50,7 @@ public function testDate(): void $this->assertSame($formattedDateString, $format->date()); } - public function testTime(): void + public function test_time(): void { $formattedTimeString = '04:00 PM'; $dbDate = '2022-01-01 00:00:00'; @@ -59,7 +59,7 @@ public function testTime(): void $this->assertSame($formattedTimeString, $format->time()); } - public function testTime24(): void + public function test_time24(): void { $formattedTimeString = '16:00'; $dbDate = '2022-01-01 00:00:00';