Skip to content

Commit

Permalink
Merge pull request #1207 from jim-parry/fix/helpertests
Browse files Browse the repository at this point in the history
Correct helper tests namespace
  • Loading branch information
lonnieezell authored Sep 7, 2018
2 parents 9bb7a52 + 8fb8d90 commit 8a4ff9b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
6 changes: 5 additions & 1 deletion tests/system/Helpers/CookieHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php namespace CodeIgniter\HTTP;
<?php
namespace CodeIgniter\Helpers;

use Config\App;
use CodeIgniter\Config\Services;
use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\URI;
use CodeIgniter\HTTP\UserAgent;
use Tests\Support\HTTP\MockResponse;

final class CookieHelperTest extends \CIUnitTestCase
Expand Down
5 changes: 3 additions & 2 deletions tests/system/Helpers/DateHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php namespace CodeIgniter\HTTP;
<?php
namespace CodeIgniter\Helpers;

use Config\App;
use CodeIgniter\Config\Services;
Expand Down Expand Up @@ -31,7 +32,7 @@ public function testNowDefault()
public function testNowSpecific()
{
// Chicago should be two hours ahead of Vancouver
$this->assertEquals(7200,now('America/Chicago')-now('America/Vancouver'));
$this->assertEquals(7200, now('America/Chicago') - now('America/Vancouver'));
}

}
3 changes: 2 additions & 1 deletion tests/system/Helpers/HTMLHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php namespace CodeIgniter\HTTP;
<?php
namespace CodeIgniter\Helpers;

final class HTMLHelperTest extends \CIUnitTestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/system/Helpers/InflectorHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php namespace CodeIgniter\HTTP;

<?php
namespace CodeIgniter\Helpers;

final class InflectorHelperTest extends \CIUnitTestCase
{
Expand Down
5 changes: 3 additions & 2 deletions tests/system/Helpers/NumberHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php namespace CodeIgniter\HTTP;
<?php
namespace CodeIgniter\Helpers;

class numberHelperTest extends \CIUnitTestCase
final class NumberHelperTest extends \CIUnitTestCase
{

public function setUp()
Expand Down

0 comments on commit 8a4ff9b

Please sign in to comment.