-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9312 from paulbalandan/rename-stdclass-to-stdClass
refactor: rename `stdclass` to `stdClass`
- Loading branch information
Showing
3 changed files
with
14 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
use CodeIgniter\Test\CIUnitTestCase; | ||
use CodeIgniter\Test\DatabaseTestTrait; | ||
use PHPUnit\Framework\Attributes\Group; | ||
use stdclass; | ||
use stdClass; | ||
use Tests\Support\Database\Seeds\CITestSeeder; | ||
|
||
/** | ||
|
@@ -61,12 +61,12 @@ public function testRawSqlUpdateObject(): void | |
{ | ||
$data = []; | ||
|
||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->email = '[email protected]'; | ||
$row->created_at = new RawSql("setDateTime('2022-01-01')"); | ||
$data[] = $row; | ||
|
||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->email = '[email protected]'; | ||
$row->created_at = new RawSql("setDateTime('2022-01-01')"); | ||
$data[] = $row; | ||
|
@@ -85,12 +85,12 @@ public function testRawSqlSetUpdateObject(): void | |
{ | ||
$data = []; | ||
|
||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->email = '[email protected]'; | ||
$row->created_at = new RawSql("setDateTime('2022-02-01')"); | ||
$data[] = $row; | ||
|
||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->email = '[email protected]'; | ||
$row->created_at = new RawSql("setDateTime('2022-02-01')"); | ||
$data[] = $row; | ||
|
@@ -147,12 +147,12 @@ public function testRawSqlInsertObject(): void | |
{ | ||
$data = []; | ||
|
||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->email = '[email protected]'; | ||
$row->created_at = new RawSql("setDateTime('2022-05-01')"); | ||
$data[] = $row; | ||
|
||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->email = '[email protected]'; | ||
$row->created_at = new RawSql("setDateTime('2022-05-01')"); | ||
$data[] = $row; | ||
|
@@ -173,12 +173,12 @@ public function testRawSqlSetInsertObject(): void | |
{ | ||
$data = []; | ||
|
||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->email = '[email protected]'; | ||
$row->created_at = new RawSql("setDateTime('2022-06-01')"); | ||
$data[] = $row; | ||
|
||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->email = '[email protected]'; | ||
$row->created_at = new RawSql("setDateTime('2022-06-01')"); | ||
$data[] = $row; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
use CodeIgniter\Test\DatabaseTestTrait; | ||
use Config\Database; | ||
use PHPUnit\Framework\Attributes\Group; | ||
use stdclass; | ||
use stdClass; | ||
use Tests\Support\Database\Seeds\CITestSeeder; | ||
|
||
/** | ||
|
@@ -107,21 +107,21 @@ public function testUpsertAndUpsertBatchWithObject(): void | |
$data = []; | ||
|
||
// new row insert | ||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->name = 'Pedro'; | ||
$row->email = '[email protected]'; | ||
$row->country = 'El Salvador'; | ||
$data[] = $row; | ||
|
||
// no change | ||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->name = 'Ahmadinejad'; | ||
$row->email = '[email protected]'; | ||
$row->country = 'Iran'; | ||
$data[] = $row; | ||
|
||
// changed country for update | ||
$row = new stdclass(); | ||
$row = new stdClass(); | ||
$row->name = 'Derek Jones'; | ||
$row->email = '[email protected]'; | ||
$row->country = 'Canada'; | ||
|
@@ -644,7 +644,7 @@ public function testSetBatchOneRow(): void | |
$builder->setData($moreData); | ||
} | ||
|
||
$evenMoreData = new stdclass(); | ||
$evenMoreData = new stdClass(); | ||
$evenMoreData->name = 'New User2 users'; | ||
$evenMoreData->email = '[email protected]'; | ||
$evenMoreData->country = 'Netherlands'; | ||
|