Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.5 base work #640

Merged
merged 135 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
43db00d
refactor(src) 3.5 base work
lucatume Sep 21, 2023
e2e19e0
test(unit) remove deprecated use of Serializable interface in test
lucatume Sep 21, 2023
3cac08b
refactor(src,tests) scaffold Codeception version adapater
lucatume Sep 22, 2023
f5e37a2
Merge remote-tracking branch 'origin/master' into 35-base
lucatume Oct 5, 2023
ba373b5
build(Makefile) 35 downgrade automation
lucatume Oct 5, 2023
cbfd7c3
Merge remote-tracking branch 'origin/master' into 35-base
lucatume Oct 9, 2023
39ab141
Merge remote-tracking branch 'origin/master' into 35-base
lucatume Oct 14, 2023
7ca0c89
build(tests/.env) change local server ports
lucatume Oct 14, 2023
dfc9716
fix(setup) fix path to WP data
lucatume Oct 14, 2023
84cad9e
feat(Adapters/Process) add and use Symfony\Component\Process\Process …
lucatume Oct 14, 2023
ad9cbef
test(Template) remove downloaded WP directory
lucatume Oct 14, 2023
b451fac
fix(ContentProject) restore dump path to correct one
lucatume Oct 14, 2023
06045de
build(Makefile) udpate 3.5 build steps
lucatume Oct 14, 2023
f63367e
build(config/composer-35.json) req. snapshot assertions 0.4.0
lucatume Oct 14, 2023
eac92e4
build(Makefile) copy over 3.5 composer file
lucatume Oct 14, 2023
4787785
test(codeception.dist.yml) read snapshot version from env
lucatume Oct 14, 2023
17c3073
build(Makefile) composer update with no Warnings, add test_35 target
lucatume Oct 15, 2023
c30dd01
refactor(Event) create and dispatch events in a back-compatible manner
lucatume Oct 15, 2023
a19315c
fix(SQLiteDatabase) throw on stmt prep. failure
lucatume Oct 15, 2023
85f7ec3
test(unit) remove more generated files from the snapshots
lucatume Oct 15, 2023
bc3bfe7
fix(DbException) add missing code const
lucatume Oct 15, 2023
b913258
fix(Random) find open localhost port not depending on output
lucatume Oct 15, 2023
fb9ad89
test(unit) skip Bedrock test on PHP < 8
lucatume Oct 15, 2023
d8c6889
test(unit) add test to slow group
lucatume Oct 15, 2023
f598d58
test(unit) add 3.5 snapshots
lucatume Oct 15, 2023
dac64fd
fix(_support/StubClassFactory) reading param types from stringification
lucatume Oct 15, 2023
42d2fa0
test(unit) handle possible Dispatcher, Event class in tests
lucatume Oct 15, 2023
be4b089
test(unit) replace assertions with cross-compatible ones
lucatume Oct 15, 2023
9c7c338
test(unit) build test object in cross-compatible way
lucatume Oct 15, 2023
fe2698e
test(unit) PhpBuiltInServerTest update to use cross-compatible blocki…
lucatume Oct 16, 2023
d6f016a
test(unit) assert regexp in x-compat way
lucatume Oct 16, 2023
32f6813
fix(Module/WPFilesystem) handle int path correctly
lucatume Oct 16, 2023
16d199e
test(unit) add 3.5 snapshots
lucatume Oct 16, 2023
b08c94f
test(unit) import missing Suite class
lucatume Oct 16, 2023
bd76923
test(unit) use x-compat assertion
lucatume Oct 16, 2023
71cc2bd
test(unit) user x-compat createMock
lucatume Oct 16, 2023
c2fe8f8
test(unit) create 3.5 snapshots
lucatume Oct 17, 2023
43d8547
test(codeception.dist.yml) hard-code snapshot version
lucatume Oct 17, 2023
71822de
fix(WPTestCase) add more elements to backup exclusion list
lucatume Oct 17, 2023
cf5dece
test(wploadersuite) move test to wplaodersuite
lucatume Oct 17, 2023
66d21df
test(unit) move test over to wploadersuite
lucatume Oct 17, 2023
8d4f9d3
test(_support) remove PHP req. from fake Bedrock composer.json file
lucatume Oct 17, 2023
5083e63
test(unit) set exception expectation depending on Codeception version
lucatume Oct 17, 2023
abb1f0e
test(unit) use x-compat assertion
lucatume Oct 17, 2023
d2cec3e
test(unit) remove unused var
lucatume Oct 17, 2023
a6e0d29
fix(MysqlDatabase) throw on failed modification of db in import
lucatume Oct 18, 2023
4775066
test(unit) cleanup tmp dir after test
lucatume Oct 18, 2023
eadb4fc
test(unit) rm tmp dirs after test
lucatume Oct 18, 2023
93d4587
test(unit) rm tmp dir after test
lucatume Oct 18, 2023
9ef20a2
test(unit) add v3.5 snapshots
lucatume Oct 18, 2023
71c3e7d
fix(src) PHPStan pass over the code
lucatume Oct 18, 2023
3f1bd76
test(unit) update snapshots
lucatume Oct 18, 2023
0f99fb8
test(.env, unit) more cross compat code and updates
lucatume Oct 19, 2023
74cd426
fix(PhpBuiltInServer) check server up using curl
lucatume Oct 19, 2023
93b5b07
build(.env,codeception) hard-code v3.5
lucatume Oct 19, 2023
9d68022
build(Makefile) remove composer.lock and vendor before build_35
lucatume Oct 19, 2023
5f90c7c
test(codeception.dist.yml) empty snapshot version
lucatume Oct 19, 2023
c3c7f1f
fix(PhpBuiltInServer) curl check issue
lucatume Oct 19, 2023
df91259
refact(Utils) faster and more robust open port fetch and check
lucatume Oct 20, 2023
4cbb562
fix(PhpBuiltInServer) more robust port check
lucatume Oct 20, 2023
c38fde4
build(docker-compose.yml) update db name
lucatume Oct 20, 2023
c67e025
build(rector) add rules to handle EventDispatcher versions
lucatume Oct 20, 2023
74f3a6e
build(rector) update rules to build 3.5
lucatume Oct 20, 2023
a247080
style(src) fix line length
lucatume Oct 20, 2023
b8f5567
refactor(PhpBuiltInServer) remove debug entries
lucatume Oct 21, 2023
ceff9f3
build(.github) debug failing tests
lucatume Oct 21, 2023
1932d7d
build(.github) restore full test suite
lucatume Oct 22, 2023
ad722d8
build(config/rector-35.php) restore all target paths
lucatume Oct 22, 2023
3376eed
build(config/composer-35.json) lower target PHP version to 5.6
lucatume Oct 22, 2023
d518f20
build(config/composer-35.json) set PHP version boundaries
lucatume Oct 23, 2023
0bf2953
build(config/composer-35.json) set config platform to php 7.1
lucatume Oct 23, 2023
02236ee
build(config/rector-35.php) exclude type-widening rector
lucatume Oct 24, 2023
da35507
build(Makefile) down docker compose correctly
lucatume Oct 24, 2023
692271d
fix(PhpBuiltInServer) work-around Process lack of stderr output in lo…
lucatume Oct 24, 2023
6302f9a
test(unit) check for file existence before removal
lucatume Oct 28, 2023
cf15964
fix(SerializableClosure) extend Serializable interface
lucatume Oct 28, 2023
64a2b6a
fix(FileStreamWrapper) open with resource context only if is_resource
lucatume Oct 29, 2023
163ae16
fix(Single,Multisite) do not import trait twice
lucatume Oct 29, 2023
2ff5fe2
fix(DockerComposeController) remove fluent use, update tests
lucatume Oct 30, 2023
283d36d
refactor(ChromedriverInstaller) cache version and platform URL
lucatume Nov 9, 2023
d7f1db5
build(config/composer-35.json) autoload src/functions.php
lucatume Nov 13, 2023
b808212
chore(.gitattributes) diff PHP files correctly
lucatume Nov 13, 2023
20bfc62
fix(Loop) merge_only on running count
lucatume Nov 13, 2023
2111201
test(unit) x-compatible mocking of Process
lucatume Nov 13, 2023
75846b5
fix(PhpBuiltInServer) handle occupied port correctly
lucatume Nov 14, 2023
0a80dd9
fix(Module/WPCLI) remove custom debugSection method
lucatume Nov 14, 2023
6386e3d
fix(DockerComposerController) remove duplicate Process::mustRun call
lucatume Nov 14, 2023
881f07e
build(config/rector) add rule to remove type-hinting from class methods
lucatume Nov 15, 2023
7f5431a
fix(Module/WPDb) execute blog drop/scaffold queries one by one
lucatume Nov 15, 2023
56b4564
fix(Module/WPDb) reconnect to db after blog insertion
lucatume Nov 16, 2023
7a4e709
build(config/rector-35.php) remove type-hinting from more methods
lucatume Nov 16, 2023
e2c3e37
fix(SerializableThrowable) correctly rehydrate wrapped throwable
lucatume Nov 16, 2023
71d50d6
fix(SerializableThrowable) prepare throwable on getThrowable
lucatume Nov 16, 2023
8c8b6e8
fix(SerializableThrowable) more robust prop. setting
lucatume Nov 16, 2023
c8f84d8
test(unit) exclude WooCommerce from tests on PHP < 7.4
lucatume Nov 16, 2023
b93b6ca
test(ResponseTest) update to use PHP 7.0 compat class
lucatume Nov 17, 2023
1a59b24
test(StderrStreamTest.php) skip CompileError test on PHP < 7.3
lucatume Nov 17, 2023
9135401
fix(ChromedriverInstaller) restore overwrite on update mechanic
lucatume Nov 17, 2023
3c4c1d9
test(ChromedriverInstallerTest.php) clean up tmp files after tests
lucatume Nov 17, 2023
6fcc5b3
test(Extensions) update code to use explicit expectations
lucatume Nov 17, 2023
09a806e
style(BuiltInServerControllerTest) spacing
lucatume Nov 17, 2023
5fbfc43
build(tests/.env) set WPBROWSER_VERSION to empty value
lucatume Nov 17, 2023
855fcf0
build(codeception.dist.yml) pull snapshot version from env
lucatume Nov 17, 2023
8291c8b
test(unit) import trait correctly
lucatume Nov 17, 2023
5540365
build(rector) update RemoveTypeHinting class with options
lucatume Nov 18, 2023
25db2ff
fix(tests) PHP version checks
lucatume Nov 18, 2023
b27cc7b
test(unit) namespace class correctly, use trad. closure forms
lucatume Nov 18, 2023
b5ca540
test(unit) skip test on PHP < 8.0
lucatume Nov 18, 2023
bd7b1b8
fix(EventDispatcher) dispatch correctly depending on the Dispatcher c…
lucatume Nov 19, 2023
c91a018
fix(SerializableThrowable) restore all data correctly
lucatume Nov 20, 2023
c859d08
fix(ThemeProject) pass correct theme name
lucatume Nov 20, 2023
43fa369
test(unit) do not run Bedrock test on Codeception < 5
lucatume Nov 20, 2023
ef42d00
build(composer-35.json) up the PHP version bound to 8.2
lucatume Nov 20, 2023
095e7cd
fix(Dispatcher.php) correct EventDispatcher::dispatch call
lucatume Nov 20, 2023
9191920
build(composer-35.json) include Codeception shims
lucatume Nov 21, 2023
c7b335c
fix(Module/WPFilesystem) use most recent available assertion
lucatume Nov 21, 2023
c6a867f
test(ComposerTest) set expectation correctly
lucatume Nov 21, 2023
fa663f0
fix(Adapaters/Symfony/Process) add fill for setOptions method
lucatume Nov 21, 2023
c0cfd59
build(Makefile) scaffold full build and test
lucatume Nov 21, 2023
c3be09b
build(config/containers) remove directory
lucatume Nov 22, 2023
d85f1fd
test(unit) update template test to remove more info from snapshots
lucatume Nov 22, 2023
c4707e0
test(unit) update setup template snapshots
lucatume Nov 22, 2023
585f985
test(unit) update init template snapshots on PHP 8.0+
lucatume Nov 22, 2023
879460b
test(unit) update 3.5 snapshots
lucatume Nov 22, 2023
da81f28
build(makefile) remove local build steps
lucatume Nov 22, 2023
f6b63b4
fix(src) phpstan issues
lucatume Nov 23, 2023
26f2625
fix(tests) typos
lucatume Nov 23, 2023
5932195
build(src/shim.php) restore content
lucatume Nov 23, 2023
ed36263
fix(Adapters/Process) return after parent call
lucatume Nov 23, 2023
18c4079
fix(MonkeyPatching) handle feel fopen
lucatume Nov 23, 2023
5620d46
build(bin/setup-wp.php) ensure 2021 theme installed
lucatume Nov 23, 2023
2f536b4
refactor(Installers) support caching downloads
lucatume Nov 24, 2023
e32feb0
test(unit) restore bedrock test
lucatume Nov 24, 2023
227e59c
Merge remote-tracking branch 'origin/master' into 35-base
lucatume Nov 24, 2023
262d978
doc(CHANGELOG.md) add 3.5 base entries
lucatume Nov 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
/todo.txt export-ignore
/var export-ignore
/vendor export-ignore

*.php diff=php
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [unreleased] Unreleased

### Fixed

- Correctly activate themes during bootstrap.

#### Changed

- Lay the groundwork for version 3.5 automated building.

## [4.0.10] 2023-10-14;

### Added
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,13 @@ clean_procs:
pgrep -f 'php -S' | xargs kill
pgrep chromedriver | xargs kill
rm -f var/_output/*.pid var/_output/*.running
set -o allexport && source tests/.env && set +o allexport && docker compose down
.PHONY: clean_procs

build_35:
rm -rf vendor composer.lock
composer require --dev rector/rector -W
vendor/bin/rector --config=config/rector-35.php
rm -rf vendor composer.lock composer.json
cp config/composer-35.json composer.json
.PHONY: build_35
6 changes: 6 additions & 0 deletions bin/setup-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@
$installation->runWpCliCommandOrThrow(['theme', 'install', 'twentytwenty', '--activate']);
}

echo "Checking TwentyTwentyOne theme in $wpRootDir ...\n";
if (!is_dir($wpRootDir . '/wp-content/themes/twentytwentyone')) {
echo "Installing TwentyTwentyOne theme in $wpRootDir ...\n";
$installation->runWpCliCommandOrThrow(['theme', 'install', 'twentytwentyone', '--activate']);
}

echo "Installing required test plugins in $wpRootDir ...\n";
$installation->runWpCliCommandOrThrow(['plugin', 'install', 'woocommerce', 'akismet', 'hello-dolly']);

Expand Down
3 changes: 3 additions & 0 deletions codeception.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ extensions:
- "lucatume\\WPBrowser\\Command\\DevInfo"
- "lucatume\\WPBrowser\\Command\\DbImport"
- "lucatume\\WPBrowser\\Command\\DbExport"
snapshot:
refresh: true
version: "%WPBROWSER_VERSION%"
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"require": {
"php": "^8.0",
"ext-pdo": "*",
"ext-mysqli": "*",
"ext-fileinfo": "*",
"ext-json": "*",
"ext-curl": "*",
Expand All @@ -39,13 +40,14 @@
"ifsnop/mysqldump-php": "^2.12"
},
"require-dev": {
"ext-mysqli": "*",
"lucatume/codeception-snapshot-assertions": "^1.0.0",
"gumlet/php-image-resize": "^1.6",
"szepeviktor/phpstan-wordpress": "^1.3",
"phpstan/phpstan": "*",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-symfony": "^1.3",
"squizlabs/php_codesniffer": "^3.7"
"squizlabs/php_codesniffer": "^3.7",
"rector/rector": "^0.18.5"
},
"autoload": {
"psr-4": {
Expand All @@ -58,12 +60,14 @@
},
"files": [
"src/version-4-aliases.php",
"src/Deprecated/deprecated-functions.php"
"src/Deprecated/deprecated-functions.php",
"src/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"lucatume\\WPBrowser\\Tests\\": "tests/_support"
"lucatume\\WPBrowser\\Tests\\": "tests/_support",
"lucatume\\Rector\\": "config/rector/src"
}
},
"extra": {
Expand Down
101 changes: 101 additions & 0 deletions config/composer-35.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"name": "lucatume/wp-browser",
"type": "library",
"description": "A set of Codeception modules to test WordPress projects.",
"keywords": [
"wordpress",
"codeception"
],
"homepage": "https://github.com/lucatume/wp-browser",
"license": "MIT",
"authors": [
{
"name": "theAverageDev (Luca Tumedei)",
"email": "luca@theaveragedev.com",
"homepage": "https://theaveragedev.com",
"role": "Developer"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.1 <8.0",
"ext-pdo": "*",
"ext-mysqli": "*",
"ext-fileinfo": "*",
"ext-json": "*",
"ext-curl": "*",
"ext-zip": "*",
"composer-runtime-api": "^2.2",
"codeception/codeception": "^4",
"codeception/module-asserts": "^1.0",
"codeception/module-phpbrowser": "^1.0",
"codeception/module-webdriver": "^1.0",
"codeception/module-db": "^1.0",
"codeception/module-filesystem": "^1.0",
"codeception/module-cli": "^1.0",
"symfony/process": ">=3.4.47 <7.0",
"symfony/filesystem": ">=3.4.47 <7.0",
"vlucas/phpdotenv": "^4.3",
"ifsnop/mysqldump-php": "^2.12"
},
"require-dev": {
"gumlet/php-image-resize": "^1.6",
"szepeviktor/phpstan-wordpress": "^0.7",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan-symfony": "^0.12.44",
"squizlabs/php_codesniffer": "^3.7",
"lucatume/codeception-snapshot-assertions": "^0.4"
},
"autoload": {
"psr-4": {
"lucatume\\WPBrowser\\": [
"src/",
"src/Deprecated"
],
"Hautelook\\Phpass\\": "includes/Hautelook/Phpass",
"lucatume\\WPBrowser\\Opis\\Closure\\" : "includes/opis/closure/src"
},
"files": [
"src/version-4-aliases.php",
"src/Deprecated/deprecated-functions.php",
"src/functions.php",
"src/shim.php"
]
},
"autoload-dev": {
"psr-4": {
"lucatume\\WPBrowser\\Tests\\": "tests/_support"
}
},
"extra": {
"_hash": "484f861f69198089cab0e642f27e5653"
},
"config": {
"platform": {
"php": "7.1"
},
"allow-plugins": {
"phpstan/extension-installer": true,
"webdriver-binary/binary-chromedriver": true
}
},
"scripts": {
"stan": [
"phpstan analyse --memory-limit=4G --no-progress --no-interaction --ansi -c config/phpstan.neon.dist"
],
"stan-pro": [
"phpstan analyse --memory-limit=4G --no-progress --no-interaction --ansi -c config/phpstan.neon.dist --pro --watch"
],
"cs": [
"phpcs --standard=config/phpcs.xml src"
],
"cs-fix": [
"phpcbf --standard=config/phpcs.xml src"
]
},
"suggest": {
"ext-sqlite3": "For SQLite database support.",
"ext-pdo_sqlite": "For SQLite database support."
}
}
56 changes: 0 additions & 56 deletions config/containers/php/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions config/containers/php/bashrc_scripts.sh

This file was deleted.

19 changes: 0 additions & 19 deletions config/containers/php/php.ini

This file was deleted.

9 changes: 0 additions & 9 deletions config/containers/php/xdebug-off.sh

This file was deleted.

9 changes: 0 additions & 9 deletions config/containers/php/xdebug-on.sh

This file was deleted.

85 changes: 85 additions & 0 deletions config/rector-35.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php

declare(strict_types=1);

use Codeception\TestInterface;
use lucatume\Rector\RemoveTypeHinting;
use lucatume\Rector\SwapEventDispatcherEventNameParameters;
use Rector\Config\RectorConfig;
use Rector\DowngradePhp72\Rector\ClassMethod\DowngradeParameterTypeWideningRector;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\Rector\Name\RenameClassRector;
use Rector\Renaming\Rector\PropertyFetch\RenamePropertyRector;
use Rector\Renaming\ValueObject\MethodCallRename;
use Rector\Renaming\ValueObject\RenameProperty;
use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\TypeDeclaration\Rector\ClassMethod\ArrayShapeFromConstantArrayReturnRector;
use Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
dirname(__DIR__) . '/includes',
dirname(__DIR__) . '/src',
dirname(__DIR__) . '/tests',
]);

$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
'Symfony\Contracts\EventDispatcher\Event' => 'Symfony\Component\EventDispatcher\Event',
'Psr\EventDispatcher\EventDispatcherInterface' => 'Symfony\Component\EventDispatcher\EventDispatcherInterface'
]);
$rectorConfig->ruleWithConfiguration(RenamePropertyRector::class, [
new RenameProperty(
'lucatume\WPBrowser\TestCase\WPTestCase',
'backupStaticAttributesExcludeList',
'backupStaticAttributesBlacklist'
),
new RenameProperty(
'lucatume\WPBrowser\TestCase\WPTestCase',
'backupGlobalsExcludeList',
'backupGlobalsBlacklist'
)
]);
$rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
new MethodCallRename('PHPUnit\Framework\Assert', 'assertMatchesRegularExpression', 'assertRegExp'),
new MethodCallRename('PHPUnit\Framework\Assert', 'assertDoesNotMatchRegularExpression', 'assertNotRegExp'),
new MethodCallRename('PHPUnit\Framework\Assert', 'assertFileDoesNotExist', 'assertFileNotExists')
]);

$rectorConfig->rule(SwapEventDispatcherEventNameParameters::class);

$rectorConfig->sets([DowngradeLevelSetList::DOWN_TO_PHP_71]);
$rectorConfig->skip([DowngradeParameterTypeWideningRector::class]);

$rectorConfig->ruleWithConfiguration(RemoveTypeHinting::class, [
'lucatume\WPBrowser\Module\WPDb' => [
'_cleanup' => [
// from: public function _cleanup(string $databaseKey = null, array $databaseConfig = null): void
// to: public function _cleanup($databaseKey = null, $databaseConfig = null)
RemoveTypeHinting::REMOVE_ALL => true
],
'_loadDump' => [
// from: public function _loadDump(string $databaseKey = null, array $databaseConfig = null): void
// public function _loadDump($databaseKey = null, $databaseConfig = null)
RemoveTypeHinting::REMOVE_ALL => true
],
'loadDumpUsingDriver' => [
// from: protected function loadDumpUsingDriver(string $databaseKey): void
// to: protected function loadDumpUsingDriver($databaseKey)
RemoveTypeHinting::REMOVE_ALL => true
]
],
'lucatume\WPBrowser\Module\WPFilesystem' => [
// from: public function _failed(TestInterface $test, Exception $fail): void
// to: public function _failed(TestInterface $test, Exception $fail)
'_failed' => [
RemoveTypeHinting::REMOVE_RETURN_TYPE_HINTING => true,
RemoveTypeHinting::REMOVE_PARAM_TYPE_HINTING => ['fail']
],
// from: public function assertDirectoryExists(string $directory, string $message = ''): void
// to: protected function assertDirectoryExists($directory, $message = '')
'assertDirectoryExists' => [
RemoveTypeHinting::REMOVE_ALL => true
]
]
]);
};
Loading