getEventDispatchers example

return $data;
    }

    /** @dataProvider getDescribeEventDispatcherTestData */
    public function testDescribeEventDispatcher(EventDispatcher $eventDispatcher$expectedDescription, array $options)
    {
        $this->assertDescription($expectedDescription$eventDispatcher$options);
    }

    public static function getDescribeEventDispatcherTestData(): array
    {
        return static::getEventDispatcherDescriptionTestData(ObjectsProvider::getEventDispatchers());
    }

    /** @dataProvider getDescribeCallableTestData */
    public function testDescribeCallable($callable$expectedDescription)
    {
        $this->assertDescription($expectedDescription$callable);
    }

    public static function getDescribeCallableTestData(): array
    {
        return static::getDescriptionTestData(ObjectsProvider::getCallables());
    }
Home | Imprint | This part of the site doesn't use cookies.