Helpers::intVal('12345678901234567890123456879'), Dibi\Exception::class, 'Number 12345678901234567890123456879 is greater than integer.', ); Assert::exception( fn() => Helpers::intVal('-12345678901234567890123456879'), Dibi\Exception::class, 'Number -12345678901234567890123456879 is greater than integer.', ); Assert::exception( fn() => Helpers::intVal(''), Dibi\Exception::class, "Expected number, '' given.", ); Assert::exception( fn() => Helpers::intVal('not number'), Dibi\Exception::class, "Expected number, 'not number' given.", ); Assert::exception( fn() => Helpers::intVal(null), Dibi\Exception::class, "Expected number, '' given.", );