array_unique

Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Removes duplicate values from an array
<?php array_unique(array $array, int $flags = SORT_STRING): array
<?php         $classAttributesCode = implode('', array_map(

            static fn (string $attribute): string => sprintf("\n%s", $attribute),

            array_unique($classAttributes),

        ));



        try {
<?php         ];



        $numberOfNotPassedTests = count(

            array_unique(

                array_map(

                    function (BeforeFirstTestMethodErrored|Errored|Failed|Skipped|ConsideredRisky|MarkedIncomplete $event): string {

                        if ($event instanceof BeforeFirstTestMethodErrored) {

                            return $event->testClassName();

                        }



                        return $this->getTestCaseLocation($event->test());

                    },

                    $events

                )

            )

        );



        $numberOfPassedTests = $result->numberOfTestsRun() - $numberOfNotPassedTests;