assertFalse((new ExistsMapper())->map([false, 'nope']), 'Result should have been false'); } finally { Configuration::$mode = null; } } #[TestDox('Map succeeds for SQLite')] public function testMapSucceedsForSQLite(): void { try { Configuration::$mode = Mode::SQLite; $this->assertTrue((new ExistsMapper())->map([1, 'yep']), 'Result should have been true'); } finally { Configuration::$mode = null; } } public function testMapFailsWhenModeNotSet(): void { $this->expectException(DocumentException::class); Configuration::$mode = null; (new ExistsMapper())->map(['0']); } }