. */ declare(strict_types=1); namespace Fisharebest\Webtrees; use PHPUnit\Framework\Attributes\CoversClass; use function error_reporting; #[CoversClass(Webtrees::class)] class WebtreesTest extends TestCase { public function testInit(): void { error_reporting(0); $webtrees = new Webtrees(); $webtrees->bootstrap(); // webtrees sets the error reporting level. self::assertNotSame(0, error_reporting()); self::assertSame(Webtrees::ERROR_REPORTING, error_reporting()); } }