Skip to content

Commit e6fdb07

Browse files
committed
Update: Fix lint errors
1 parent cec7957 commit e6fdb07

3 files changed

Lines changed: 52 additions & 42 deletions

File tree

‎behat.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ default:
22
suites:
33
default:
44
contexts:
5-
- SQLiteFeatureContext
5+
- Automattic\WP_CLI\SQLite\SQLiteFeatureContext
66
paths:
77
- features

‎composer.json‎

Lines changed: 49 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,53 @@
11
{
2-
"name": "automattic/wp-cli-sqlite-command",
3-
"description": "A command for importing and exporting from an SQLite database",
4-
"homepage": "https://github.com/Automattic/wp-cli-sqlite-command",
5-
"type": "wp-cli-package",
6-
"license": "GPL-2.0-or-later",
7-
"autoload": {
8-
"files": [ "command.php" ],
9-
"classmap": ["src/" ]
10-
},
11-
"authors": [
12-
{
13-
"name": "Jeroen Pfeil",
14-
"email": "jeroen.pfeil@automattic.com"
15-
}
2+
"name": "automattic/wp-cli-sqlite-command",
3+
"description": "A command for importing and exporting from an SQLite database",
4+
"homepage": "https://github.com/Automattic/wp-cli-sqlite-command",
5+
"type": "wp-cli-package",
6+
"license": "GPL-2.0-or-later",
7+
"autoload": {
8+
"files": [
9+
"command.php"
1610
],
17-
"require": {
18-
"php": ">=7.4",
19-
"wp-cli/wp-cli": "^2.5"
20-
},
21-
"require-dev": {
22-
"wp-cli/wp-cli-tests": "^4"
23-
},
24-
"scripts": {
25-
"behat": "run-behat-tests",
26-
"behat-rerun": "rerun-behat-tests",
27-
"lint": "run-linter-tests",
28-
"phpcs": "run-phpcs-tests",
29-
"phpcbf": "run-phpcbf-cleanup",
30-
"phpunit": "run-php-unit-tests",
31-
"prepare-tests": "install-package-tests",
32-
"test": [
33-
"@lint",
34-
"@phpcs",
35-
"@phpunit",
36-
"@behat"
37-
]
38-
},
39-
"config": {
40-
"allow-plugins": {
41-
"dealerdirect/phpcodesniffer-composer-installer": true
42-
}
11+
"classmap": [
12+
"src/"
13+
]
14+
},
15+
"autoload-dev": {
16+
"psr-4": {
17+
"Automattic\\WP_CLI\\SQLite\\": "features/bootstrap/"
4318
}
19+
},
20+
"authors": [
21+
{
22+
"name": "Jeroen Pfeil",
23+
"email": "jeroen.pfeil@automattic.com"
24+
}
25+
],
26+
"require": {
27+
"php": ">=7.4",
28+
"wp-cli/wp-cli": "^2.5"
29+
},
30+
"require-dev": {
31+
"wp-cli/wp-cli-tests": "^4"
32+
},
33+
"scripts": {
34+
"behat": "run-behat-tests",
35+
"behat-rerun": "rerun-behat-tests",
36+
"lint": "run-linter-tests",
37+
"phpcs": "run-phpcs-tests",
38+
"phpcbf": "run-phpcbf-cleanup",
39+
"phpunit": "run-php-unit-tests",
40+
"prepare-tests": "install-package-tests",
41+
"test": [
42+
"@lint",
43+
"@phpcs",
44+
"@phpunit",
45+
"@behat"
46+
]
47+
},
48+
"config": {
49+
"allow-plugins": {
50+
"dealerdirect/phpcodesniffer-composer-installer": true
51+
}
52+
}
4453
}

‎features/bootstrap/SQLiteFeatureContext.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
77
use Behat\Gherkin\Node\PyStringNode;
88
use WP_CLI\Tests\Context\FeatureContext as WPCLIFeatureContext;
9+
use SQLite3;
910

10-
class WP_CLI_SQLite_FeatureContext extends WPCLIFeatureContext implements Context {
11+
class SQLiteFeatureContext extends WPCLIFeatureContext implements Context {
1112

1213
private $db;
1314

0 commit comments

Comments
 (0)