From 5488fc6e289052feca388150485c8493e3baba6e Mon Sep 17 00:00:00 2001 From: "p.chapl"
This is a test...', StringHelper::truncate('
This is a test sentance', 14, '...', null, true));
$this->assertEquals('
This is a test...', StringHelper::truncate('
This is a test sentance', 14, '...', null, true));
$this->assertEquals('
This is a test for...', StringHelper::truncate('
This is a test for a sentance', 18, '...', null, true));
@@ -136,7 +136,7 @@ class StringHelperTest extends TestCase
$this->assertEquals('
This is a test...', StringHelper::truncateWords('
This is a test sentance', 4, '...', true));
$this->assertEquals('
This is a test for...', StringHelper::truncateWords('
This is a test for a sentance', 5, '...', true));
- $this->assertEquals('
This is a test for...', StringHelper::truncateWords('
This is a test for a sentance', 5, '...', true));
+ $this->assertEquals('
This is a test for...', StringHelper::truncateWords('
This is a test for a sentance', 5, '...', true));
}
/**
diff --git a/tests/framework/helpers/VarDumperTest.php b/tests/framework/helpers/VarDumperTest.php
index cf559e503f..3e34ad3cd1 100644
--- a/tests/framework/helpers/VarDumperTest.php
+++ b/tests/framework/helpers/VarDumperTest.php
@@ -26,7 +26,7 @@ class VarDumperTest extends TestCase
$exportResult = VarDumper::export($incompleteObj);
$this->assertContains("nonExistingClass", $exportResult);
}
-
+
public function testDumpObject()
{
$obj = new \StdClass();
diff --git a/tests/framework/log/SyslogTargetTest.php b/tests/framework/log/SyslogTargetTest.php
index 2daa91f901..4a61b82033 100644
--- a/tests/framework/log/SyslogTargetTest.php
+++ b/tests/framework/log/SyslogTargetTest.php
@@ -27,7 +27,7 @@ namespace yiiunit\framework\log {
/**
* Class SyslogTargetTest
- *
+ *
* @package yiiunit\framework\log
* @group log
*/
@@ -35,7 +35,7 @@ namespace yiiunit\framework\log {
{
/**
* Array of static functions
- *
+ *
* @var array
*/
static $functions = [];
diff --git a/tests/framework/mutex/MysqlMutexTest.php b/tests/framework/mutex/MysqlMutexTest.php
index a339064321..2431279c1a 100644
--- a/tests/framework/mutex/MysqlMutexTest.php
+++ b/tests/framework/mutex/MysqlMutexTest.php
@@ -10,7 +10,7 @@ use yiiunit\framework\db\DatabaseTestCase;
*
* @group mutex
* @group mysql
- *
+ *
* @package yiiunit\framework\mutex
*/
class MysqlMutexTest extends DatabaseTestCase
diff --git a/tests/framework/mutex/PgsqlMutexTest.php b/tests/framework/mutex/PgsqlMutexTest.php
index 3eef4057f2..195dd032bf 100644
--- a/tests/framework/mutex/PgsqlMutexTest.php
+++ b/tests/framework/mutex/PgsqlMutexTest.php
@@ -10,7 +10,7 @@ use yiiunit\framework\db\DatabaseTestCase;
*
* @group mutex
* @group pgsql
- *
+ *
* @package yiiunit\framework\mutex
*/
class PgsqlMutexTest extends DatabaseTestCase
diff --git a/tests/framework/web/DbSessionTest.php b/tests/framework/web/DbSessionTest.php
index 57eb066de5..2ab01c9dba 100644
--- a/tests/framework/web/DbSessionTest.php
+++ b/tests/framework/web/DbSessionTest.php
@@ -40,7 +40,7 @@ class DbSessionTest extends TestCase
'user_id' => 'integer',
])->execute();
}
-
+
// Tests :
public function testReadWrite()
@@ -117,7 +117,7 @@ class DbSessionTest extends TestCase
return substr($version, 15);
}, (new Query())->select(['version'])->from('migration')->column());
}
-
+
public function testMigration()
{
$this->mockWebApplication([
diff --git a/tests/framework/web/UserTest.php b/tests/framework/web/UserTest.php
index fdbfaa2dcd..8b2838c9aa 100644
--- a/tests/framework/web/UserTest.php
+++ b/tests/framework/web/UserTest.php
@@ -97,7 +97,7 @@ class UserTest extends TestCase
$this->assertFalse(Yii::$app->user->can('doSomething'));
}
-
+
public function testCookieCleanup()
{
global $cookiesMock;
@@ -177,7 +177,7 @@ class UserTest extends TestCase
];
$this->mockWebApplication($appConfig);
-
+
$user = Yii::$app->user;
$this->reset();
@@ -354,7 +354,7 @@ class MockResponse extends \yii\web\Response
public function getCookies()
{
global $cookiesMock;
-
+
return $cookiesMock;
}
}
diff --git a/tests/framework/web/XmlResponseFormatterTest.php b/tests/framework/web/XmlResponseFormatterTest.php
index b0d530c8ef..519d96cf43 100644
--- a/tests/framework/web/XmlResponseFormatterTest.php
+++ b/tests/framework/web/XmlResponseFormatterTest.php
@@ -75,21 +75,21 @@ class XmlResponseFormatterTest extends FormatterTest
public function formatTraversableObjectDataProvider()
{
$expectedXmlForStack = '';
-
+
$postsStack = new \SplStack();
-
+
$postsStack->push(new Post(915, 'record1'));
$expectedXmlForStack = '