File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020/**
2121 * @internal
22+ *
23+ * @group Others
2224 */
2325final class GetCompiledModelTest extends CIUnitTestCase
2426{
25- /**
26- * @var Model
27- */
28- private $ model ;
27+ private ?object $ model = null ;
2928
3029 /**
3130 * Create an instance of Model for use in testing.
@@ -44,11 +43,11 @@ private function createModel(string $modelName): Model
4443 public function testGetCompiledInsert (): void
4544 {
4645 $ this ->expectException (ModelException::class);
47- $ this ->expectExceptionMessage ('You cannot use ` getCompiledInsert()` in ` Tests\Support\Models\UserObjModel` . ' );
46+ $ this ->expectExceptionMessage ('You cannot use " getCompiledInsert()" in " Tests\Support\Models\UserObjModel" . ' );
4847
4948 $ this ->createModel (UserObjModel::class);
5049
51- $ sql = $ this ->model
50+ $ this ->model
5251 ->set ('name ' , 'Mark ' )
5352 ->set ('email ' , 'mark@example.com ' )
5453 ->getCompiledInsert ();
@@ -60,11 +59,11 @@ public function testGetCompiledInsert(): void
6059 public function testGetCompiledUpdate (): void
6160 {
6261 $ this ->expectException (ModelException::class);
63- $ this ->expectExceptionMessage ('You cannot use ` getCompiledUpdate()` in ` Tests\Support\Models\UserObjModel` . ' );
62+ $ this ->expectExceptionMessage ('You cannot use " getCompiledUpdate()" in " Tests\Support\Models\UserObjModel" . ' );
6463
6564 $ this ->createModel (UserObjModel::class);
6665
67- $ sql = $ this ->model
66+ $ this ->model
6867 ->set ('name ' , 'Mark ' )
6968 ->set ('email ' , 'mark@example.com ' )
7069 ->getCompiledUpdate ();
You can’t perform that action at this time.
0 commit comments