v2 RC1 Changes (#7)

- Changes `items` and `hasItems` on `DocumentList` to be properties
- Updates dependent option/result library, which contains similar changes

Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
2024-10-02 01:37:08 +00:00
parent df436c9ef4
commit 486028bd40
22 changed files with 266 additions and 247 deletions

View File

@@ -24,7 +24,7 @@ class ExistsMapperTest extends TestCase
{
try {
Configuration::overrideMode(Mode::PgSQL);
$this->assertFalse((new ExistsMapper())->map([false, 'nope']), 'Result should have been false');
$this->assertFalse(new ExistsMapper()->map([false, 'nope']), 'Result should have been false');
} finally {
Configuration::overrideMode(null);
}
@@ -35,7 +35,7 @@ class ExistsMapperTest extends TestCase
{
try {
Configuration::overrideMode(Mode::SQLite);
$this->assertTrue((new ExistsMapper())->map([1, 'yep']), 'Result should have been true');
$this->assertTrue(new ExistsMapper()->map([1, 'yep']), 'Result should have been true');
} finally {
Configuration::overrideMode(null);
}
@@ -46,6 +46,6 @@ class ExistsMapperTest extends TestCase
{
$this->expectException(DocumentException::class);
Configuration::overrideMode(null);
(new ExistsMapper())->map(['0']);
new ExistsMapper()->map(['0']);
}
}