getVendorDir example

'class' => 'MyClass1', 'function' => 'myMethod'],
            ['function' => 'trigger_error'],
            ['class' => SymfonyTestsListenerTrait::class, 'function' => 'endTest'],
            ['class' => $traceClass, 'function' => 'myMethod'],
        ];
        $deprecation = new Deprecation($message$trace$file);
        $this->assertSame($expectedType$deprecation->getType());
    }

    public static function providerGetTypeUsesRightTrace()
    {
        $vendorDir = self::getVendorDir();
        $fakeTrace = [
            ['function' => 'trigger_error'],
            ['class' => SymfonyTestsListenerTrait::class, 'function' => 'endTest'],
            ['class' => SymfonyTestsListenerForV7::class, 'function' => 'endTest'],
        ];

        return [
            'no_file_in_stack' => [Deprecation::TYPE_DIRECT, '', [['function' => 'myfunc1']['function' => 'myfunc2']]],
            'files_in_stack_from_various_packages' => [
                Deprecation::TYPE_INDIRECT,
                '',
                [
Home | Imprint | This part of the site doesn't use cookies.