Fix PSR1.Classes.ClassDeclaration sniffer rule in tests [MAILPOET-1025]

This commit is contained in:
stoletniy
2017-07-26 18:28:56 +03:00
parent 321393f119
commit 6fb18ad321
87 changed files with 336 additions and 224 deletions

View File

@ -1,4 +1,5 @@
<?php
namespace MailPoet\Test\API\JSON\v1;
use Codeception\Util\Stub;
use MailPoet\API\JSON\v1\Services;
@ -6,7 +7,7 @@ use MailPoet\API\JSON\Response as APIResponse;
use MailPoet\Config\Installer;
use MailPoet\Services\Bridge;
class ServicesTest extends MailPoetTest {
class ServicesTest extends \MailPoetTest {
function _before() {
$this->services_endpoint = new Services();
$this->data = array('key' => '1234567890abcdef');
@ -45,7 +46,7 @@ class ServicesTest extends MailPoetTest {
}
function testItRespondsWithErrorIfMSSKeyIsExpiring() {
$date = new DateTime;
$date = new \DateTime;
$this->services_endpoint->bridge = Stub::make(
new Bridge(),
array(
@ -178,7 +179,7 @@ class ServicesTest extends MailPoetTest {
}
function testItRespondsWithErrorIfPremiumKeyIsExpiring() {
$date = new DateTime;
$date = new \DateTime;
$this->services_endpoint->bridge = Stub::make(
new Bridge(),
array(