src/config/ConfigurationLoader.php
private function createReporter($reporter)
    {
        $reflection = new ReflectionClass($reporter);

        if ($reflection->implementsInterface(self::REPORTER) === false) {
            throw NotAvailableException::createForReporter(self::REPORTER);
        }

        return $reflection->newInstance();
    }
private function createReporter($reporter)
    {
        $reflection = new ReflectionClass($reporter);

        if ($reflection->implementsInterface(self::REPORTER) === false) {
            throw NotAvailableException::createForReporter(self::REPORTER);
        }

        return $reflection->newInstance();
    }
private function createReporter ( $ reporter ) { $ reflection = new ReflectionClass ( $ reporter ) ; if ( $ reflection -> implementsInterface ( self :: REPORTER ) === false ) { throw NotAvailableException :: createForReporter ( self :: REPORTER ) ; } return $ reflection -> newInstance ( ) ; }
Create a new result reporter

@param string $reporter

@return \expect\ResultReporter
Create a new result reporter