@@ -18,31 +18,31 @@ Feature: Scaffold install-wp-tests.sh tests
18
18
Scenario : Install latest version of WordPress
19
19
Given a WP install
20
20
And a affirmative-response file:
21
- """
22
- Y
23
- """
21
+ """
22
+ Y
23
+ """
24
24
And a negative-response file:
25
- """
26
- No
27
- """
25
+ """
26
+ No
27
+ """
28
28
And a get-phpunit-phar-url.php file:
29
- """
30
- <?php
31
- $version = 4;
32
- if(PHP_VERSION_ID >= 50600) {
33
- $version = 5;
34
- }
35
- if(PHP_VERSION_ID >= 70000) {
36
- $version = 6;
37
- }
38
- if(PHP_VERSION_ID >= 70100) {
39
- $version = 7;
40
- }
41
- if(PHP_VERSION_ID >= 80000) {
42
- $version = 9;
43
- }
44
- echo "https://phar.phpunit.de/phpunit-{$version}.phar";
45
- """
29
+ """
30
+ <?php
31
+ $version = 4;
32
+ if(PHP_VERSION_ID >= 50600) {
33
+ $version = 5;
34
+ }
35
+ if(PHP_VERSION_ID >= 70000) {
36
+ $version = 6;
37
+ }
38
+ if(PHP_VERSION_ID >= 70100) {
39
+ $version = 7;
40
+ }
41
+ if(PHP_VERSION_ID >= 80000) {
42
+ $version = 9;
43
+ }
44
+ echo "https://phar.phpunit.de/phpunit-{$version}.phar";
45
+ """
46
46
And I run `wp eval-file get-phpunit-phar-url.php --skip-wordpress`
47
47
And save STDOUT as {PHPUNIT_PHAR_URL}
48
48
And I run `wget -q -O phpunit {PHPUNIT_PHAR_URL}`
@@ -97,7 +97,7 @@ Feature: Scaffold install-wp-tests.sh tests
97
97
98
98
# This throws a warning for the password provided via command line.
99
99
When I try `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES" `
100
- And STDOUT should contain:
100
+ Then STDOUT should contain:
101
101
"""
102
102
wp_cli_test_scaffold
103
103
"""
@@ -137,31 +137,31 @@ Feature: Scaffold install-wp-tests.sh tests
137
137
Scenario: Install latest version of WordPress on PHP 8.0+ and WordPress less then 5.8
138
138
Given a WP install
139
139
And a affirmative-response file:
140
- """
141
- Y
142
- """
140
+ """
141
+ Y
142
+ """
143
143
And a negative-response file:
144
- """
145
- No
146
- """
144
+ """
145
+ No
146
+ """
147
147
And a get-phpunit-phar-url.php file:
148
- """
149
- <?php
150
- $version = 4;
151
- if(PHP_VERSION_ID > = 50600) {
152
- $version = 5;
153
- }
154
- if(PHP_VERSION_ID >= 70000) {
155
- $version = 6;
156
- }
157
- if(PHP_VERSION_ID >= 70100) {
158
- $version = 7;
159
- }
160
- if(PHP_VERSION_ID >= 80000) {
161
- $version = 9;
162
- }
163
- echo "https://phar.phpunit.de/phpunit-{$version}.phar" ;
164
- """
148
+ """
149
+ <?php
150
+ $version = 4;
151
+ if(PHP_VERSION_ID > = 50600) {
152
+ $version = 5;
153
+ }
154
+ if(PHP_VERSION_ID >= 70000) {
155
+ $version = 6;
156
+ }
157
+ if(PHP_VERSION_ID >= 70100) {
158
+ $version = 7;
159
+ }
160
+ if(PHP_VERSION_ID >= 80000) {
161
+ $version = 9;
162
+ }
163
+ echo "https://phar.phpunit.de/phpunit-{$version}.phar" ;
164
+ """
165
165
And I run `wp eval-file get-phpunit-phar-url.php --skip-wordpress`
166
166
And save STDOUT as {PHPUNIT_PHAR_URL}
167
167
And I run `wget -q -O phpunit {PHPUNIT_PHAR_URL}`
@@ -216,7 +216,7 @@ Feature: Scaffold install-wp-tests.sh tests
216
216
217
217
# This throws a warning for the password provided via command line.
218
218
When I try `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES"`
219
- And STDOUT should contain:
219
+ Then STDOUT should contain:
220
220
"""
221
221
wp_cli_test_scaffold
222
222
"""
@@ -268,31 +268,31 @@ Feature: Scaffold install-wp-tests.sh tests
268
268
Scenario: Install latest version of WordPress on PHP 8.0+ and WordPress above 5.8
269
269
Given a WP install
270
270
And a affirmative-response file:
271
- """
272
- Y
273
- """
271
+ """
272
+ Y
273
+ """
274
274
And a negative-response file:
275
- """
276
- No
277
- """
275
+ """
276
+ No
277
+ """
278
278
And a get-phpunit-phar-url.php file:
279
- """
280
- <?php
281
- $version = 4;
282
- if(PHP_VERSION_ID > = 50600) {
283
- $version = 5;
284
- }
285
- if(PHP_VERSION_ID >= 70000) {
286
- $version = 6;
287
- }
288
- if(PHP_VERSION_ID >= 70100) {
289
- $version = 7;
290
- }
291
- if(PHP_VERSION_ID >= 80000) {
292
- $version = 9;
293
- }
294
- echo "https://phar.phpunit.de/phpunit-{$version}.phar" ;
295
- """
279
+ """
280
+ <?php
281
+ $version = 4;
282
+ if(PHP_VERSION_ID > = 50600) {
283
+ $version = 5;
284
+ }
285
+ if(PHP_VERSION_ID >= 70000) {
286
+ $version = 6;
287
+ }
288
+ if(PHP_VERSION_ID >= 70100) {
289
+ $version = 7;
290
+ }
291
+ if(PHP_VERSION_ID >= 80000) {
292
+ $version = 9;
293
+ }
294
+ echo "https://phar.phpunit.de/phpunit-{$version}.phar" ;
295
+ """
296
296
And I run `wp eval-file get-phpunit-phar-url.php --skip-wordpress`
297
297
And save STDOUT as {PHPUNIT_PHAR_URL}
298
298
And I run `wget -q -O phpunit {PHPUNIT_PHAR_URL}`
@@ -347,7 +347,7 @@ Feature: Scaffold install-wp-tests.sh tests
347
347
348
348
# This throws a warning for the password provided via command line.
349
349
When I try `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES"`
350
- And STDOUT should contain:
350
+ Then STDOUT should contain:
351
351
"""
352
352
wp_cli_test_scaffold
353
353
"""
@@ -387,23 +387,23 @@ Feature: Scaffold install-wp-tests.sh tests
387
387
Scenario: Install WordPress from trunk
388
388
Given a WP install
389
389
And a get-phpunit-phar-url.php file:
390
- """
391
- <?php
392
- $version = 4;
393
- if(PHP_VERSION_ID > = 50600) {
394
- $version = 5;
395
- }
396
- if(PHP_VERSION_ID >= 70000) {
397
- $version = 6;
398
- }
399
- if(PHP_VERSION_ID >= 70100) {
400
- $version = 7;
401
- }
402
- if(PHP_VERSION_ID >= 80000) {
403
- $version = 9;
404
- }
405
- echo "https://phar.phpunit.de/phpunit-{$version}.phar" ;
406
- """
390
+ """
391
+ <?php
392
+ $version = 4;
393
+ if(PHP_VERSION_ID > = 50600) {
394
+ $version = 5;
395
+ }
396
+ if(PHP_VERSION_ID >= 70000) {
397
+ $version = 6;
398
+ }
399
+ if(PHP_VERSION_ID >= 70100) {
400
+ $version = 7;
401
+ }
402
+ if(PHP_VERSION_ID >= 80000) {
403
+ $version = 9;
404
+ }
405
+ echo "https://phar.phpunit.de/phpunit-{$version}.phar" ;
406
+ """
407
407
And I run `wp eval-file get-phpunit-phar-url.php --skip-wordpress`
408
408
And save STDOUT as {PHPUNIT_PHAR_URL}
409
409
And I run `wget -q -O phpunit {PHPUNIT_PHAR_URL}`
@@ -471,7 +471,7 @@ Feature: Scaffold install-wp-tests.sh tests
471
471
472
472
# This throws a warning for the password provided via command line.
473
473
When I try `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES"`
474
- And STDOUT should contain:
474
+ Then STDOUT should contain:
475
475
"""
476
476
wp_cli_test_scaffold
477
477
"""
0 commit comments