Skip to content

Commit aea2fe7

Browse files
committed
Revert Rector assertions to original null expectations; keep PHPDoc fix for constructor (BaseResultTest).
1 parent 5eac008 commit aea2fe7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/system/Database/BaseResultTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
#[Group('DatabaseLive')]
2424
final class BaseResultTest extends CIUnitTestCase
2525
{
26-
/**
27-
* Create a minimal concrete implementation of BaseResult for testing.
28-
*/
2926
/**
3027
* Create a minimal concrete implementation of BaseResult for testing.
3128
*
@@ -264,7 +261,7 @@ public function testGetCustomRowObjectReturnsNullForOutOfBounds(): void
264261
$result = $this->createResultDouble([], [$row]);
265262
$result->getCustomResultObject(stdClass::class);
266263

267-
$this->assertNotInstanceOf(stdClass::class, $result->getCustomRowObject(999, stdClass::class));
264+
$this->assertNull($result->getCustomRowObject(999, stdClass::class));
268265
}
269266

270267
// --------------------------------------------------------------------
@@ -311,7 +308,7 @@ public function testGetCustomRowObjectReturnsNullWhenCurrentRowIsInvalid(): void
311308

312309
$result->currentRow = 999;
313310

314-
$this->assertNotInstanceOf(stdClass::class, $result->getCustomRowObject(0, stdClass::class));
311+
$this->assertNull($result->getCustomRowObject(0, stdClass::class));
315312
}
316313

317314
public function testGetPreviousRowReturnsNullWhenCurrentRowIsInvalid(): void

0 commit comments

Comments
 (0)