Skip to content

Commit

Permalink
Merge pull request codeigniter4#7595 from kenjis/update-cs
Browse files Browse the repository at this point in the history
style: update coding style for PHP CS Fixer 3.18.0
  • Loading branch information
kenjis authored Jun 19, 2023
2 parents a766859 + 6675e77 commit ccd52d1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 23 deletions.
1 change: 0 additions & 1 deletion tests/system/ControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use Config\Services;
use Config\Validation as ValidationConfig;
use Psr\Log\LoggerInterface;
use Tests\Support\Config\Validation;

/**
* Exercise our core Controller class.
Expand Down
1 change: 0 additions & 1 deletion tests/system/Database/Live/SQLite/AlterTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace CodeIgniter\Database\Live\SQLite;

use CodeIgniter\Database\Exceptions\DataException;
use CodeIgniter\Database\SQLite3\Connection;
use CodeIgniter\Database\SQLite3\Forge;
use CodeIgniter\Database\SQLite3\Table;
use CodeIgniter\Test\CIUnitTestCase;
Expand Down
20 changes: 10 additions & 10 deletions tests/system/I18n/TimeLegacyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1125,16 +1125,16 @@ public function testGetter()
}

// @TODO Uncomment when PHP 8.2.4 Segmentation fault fixed.
// public function testUnserializeTimeObject()
// {
// $time1 = new TimeLegacy('August 28, 2020 10:04:00pm', 'Asia/Manila', 'en');
// $timeCache = serialize($time1);
// $time2 = unserialize($timeCache);
//
// $this->assertInstanceOf(TimeLegacy::class, $time2);
// $this->assertTrue($time2->equals($time1));
// $this->assertNotSame($time1, $time2);
// }
// public function testUnserializeTimeObject()
// {
// $time1 = new TimeLegacy('August 28, 2020 10:04:00pm', 'Asia/Manila', 'en');
// $timeCache = serialize($time1);
// $time2 = unserialize($timeCache);
//
// $this->assertInstanceOf(TimeLegacy::class, $time2);
// $this->assertTrue($time2->equals($time1));
// $this->assertNotSame($time1, $time2);
// }

public function testSetTestNowWithFaLocale()
{
Expand Down
20 changes: 10 additions & 10 deletions tests/system/I18n/TimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1128,16 +1128,16 @@ public function testGetter()
}

// @TODO Uncomment when PHP 8.2.4 Segmentation fault fixed.
// public function testUnserializeTimeObject()
// {
// $time1 = new Time('August 28, 2020 10:04:00pm', 'Asia/Manila', 'en');
// $timeCache = serialize($time1);
// $time2 = unserialize($timeCache);
//
// $this->assertInstanceOf(Time::class, $time2);
// $this->assertTrue($time2->equals($time1));
// $this->assertNotSame($time1, $time2);
// }
// public function testUnserializeTimeObject()
// {
// $time1 = new Time('August 28, 2020 10:04:00pm', 'Asia/Manila', 'en');
// $timeCache = serialize($time1);
// $time2 = unserialize($timeCache);
//
// $this->assertInstanceOf(Time::class, $time2);
// $this->assertTrue($time2->equals($time1));
// $this->assertNotSame($time1, $time2);
// }

public function testSetTestNowWithTimeZone()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use CodeIgniter\Test\CIUnitTestCase;
use Config\App as AppConfig;
use Config\Session as SessionConfig;
use Redis;

/**
* @group DatabaseLive
Expand Down

0 comments on commit ccd52d1

Please sign in to comment.