Making code PSR2 compliant

This commit is contained in:
gamonoid
2017-09-24 19:23:30 +02:00
parent 05b57e0236
commit 6c61577583
160 changed files with 1432 additions and 1086 deletions

View File

@@ -8,23 +8,24 @@
namespace unit;
use Attendance\User\Api\AttendanceActionManager;
use Classes\BaseService;
class UserAttendanceActionManagerUnit extends \TestTemplate{
class UserAttendanceActionManagerUnit extends \TestTemplate
{
protected $actionMgr;
protected function setUp()
{
parent::setUp();
$this->actionMgr = new AttendanceActionManager();
$this->actionMgr->setBaseService(BaseService::getInstance());
}
protected $actionMgr;
protected function setUp()
{
parent::setUp();
$this->actionMgr = new AttendanceActionManager();
$this->actionMgr->setBaseService(BaseService::getInstance());
}
public function testTran(){
public function testTran()
{
$punch = $this->actionMgr->getPunch(['date' => date('Y-m-d H:i:s')]);
self::assertEquals('SUCCESS', $punch->getStatus());
}
$punch = $this->actionMgr->getPunch(['date' => date('Y-m-d H:i:s')]);
self::assertEquals('SUCCESS', $punch->getStatus());
}
}