From b40b9626284d39f59cb13e20de6c564c2d4f5828 Mon Sep 17 00:00:00 2001 From: Luciano Baraglia Date: Sun, 19 Jan 2014 13:35:36 -0300 Subject: [PATCH] Some Code style fixes --- requirements.php | 2 +- tests/unit/models/LoginFormTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements.php b/requirements.php index 6983e20..d470f99 100644 --- a/requirements.php +++ b/requirements.php @@ -16,7 +16,7 @@ $frameworkPath = dirname(__FILE__) . '/vendor/yiisoft/yii2'; if (!is_dir($frameworkPath)) { echo '

Error

'; echo '

The path to yii framework seems to be incorrect.

'; - echo '

You need to install Yii framework via composer or adjust the framework path in file ' . basename(__FILE__) .'.

'; + echo '

You need to install Yii framework via composer or adjust the framework path in file ' . basename(__FILE__) . '.

'; echo '

Please refer to the README on how to install Yii.

'; } diff --git a/tests/unit/models/LoginFormTest.php b/tests/unit/models/LoginFormTest.php index f232a47..a69d69f 100644 --- a/tests/unit/models/LoginFormTest.php +++ b/tests/unit/models/LoginFormTest.php @@ -33,8 +33,8 @@ class LoginFormTest extends TestCase $this->specify('user should not be able to login with wrong password', function () use ($model) { $this->assertFalse($model->login()); - $this->assertArrayHasKey('password',$model->errors); - $this->assertTrue(Yii::$app->user->isGuest,'user should not be logged in'); + $this->assertArrayHasKey('password', $model->errors); + $this->assertTrue(Yii::$app->user->isGuest, 'user should not be logged in'); }); } @@ -47,7 +47,7 @@ class LoginFormTest extends TestCase $this->specify('user should be able to login with correct credentials', function() use ($model) { $this->assertTrue($model->login()); - $this->assertArrayNotHasKey('password',$model->errors); + $this->assertArrayNotHasKey('password', $model->errors); $this->assertFalse(Yii::$app->user->isGuest,'user should be logged in'); }); } @@ -59,4 +59,4 @@ class LoginFormTest extends TestCase return $loginForm; } -} \ No newline at end of file +}