mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-11 18:56:18 +09:00
Reinstate PHP7 code in tests
This commit is contained in:
+1
-1
@@ -15,6 +15,6 @@
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1"
|
||||
},
|
||||
"scripts": {
|
||||
"lint:php": "@php ./vendor/bin/phpcs -s"
|
||||
"lint": "@php ./vendor/bin/phpcs -s"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,12 +6,12 @@ class WPStrava_SOMEnglishTest extends TestCase {
|
||||
|
||||
private $som;
|
||||
|
||||
public function setUp() {
|
||||
public function setUp() : void { // phpcs:ignore PHPCompatibility.FunctionDeclarations.NewReturnTypeDeclarations.voidFound -- PHPUnit requires PHP7
|
||||
\WP_Mock::setUp();
|
||||
$this->som = new WPStrava_SOMEnglish();
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
public function tearDown() : void { // phpcs:ignore PHPCompatibility.FunctionDeclarations.NewReturnTypeDeclarations.voidFound -- PHPUnit requires PHP7
|
||||
\WP_Mock::tearDown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user