Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find whether the type of a variable is integer
<?php is_int(mixed $value): bool
<?php         $dataSetName = $test->testData()->dataFromDataProvider()->dataSetName();



        if (is_int($dataSetName)) {

            return sprintf(

                '%s with data set #%d',

                $test->methodName(),
<?php     public function toHaveProperties(iterable $names, string $message = ''): self

    {

        foreach ($names as $name => $value) {

            is_int($name) ? $this->toHaveProperty($value, message: $message) : $this->toHaveProperty($name, $value, $message); // @phpstan-ignore-line

        }



        return $this;
<?php     public function throws(string|int $exception, ?string $exceptionMessage = null, ?int $exceptionCode = null): self

    {

        if (is_int($exception)) {

            $exceptionCode = $exception;

        } elseif (class_exists($exception)) {

            $this->testCaseMethod
<?php                 ->add(Backtrace::file(), Backtrace::line(), 'expectExceptionMessage', [$exceptionMessage]);

        }



        if (is_int($exceptionCode)) {

            $this->testCaseMethod

                ->proxies

                ->add(Backtrace::file(), Backtrace::line(), 'expectExceptionCode', [$exceptionCode]);
<?php     {

        $argvValue = Arr::get($_SERVER, 'PARATEST');



        assert(is_string($argvValue) || is_int($argvValue) || is_null($argvValue));



        return ((int) $argvValue) === 1;

    }
<?php     {

        $exporter = Exporter::default();



        if (is_int($key)) {

            return sprintf('(%s)', $exporter->shortenedRecursiveExport($data));

        }