BetterReflectionTest\Reflection\Adapter\ReflectionClassTest::methodExpectationProvider PHP Method

methodExpectationProvider() public method

    public function methodExpectationProvider()
    {
        $mockMethod = $this->createMock(BetterReflectionMethod::class);
        $mockProperty = $this->createMock(BetterReflectionProperty::class);
        $mockClassLike = $this->createMock(BetterReflectionClass::class);
        return [['__toString', null, '', []], ['getName', null, '', []], ['isInternal', null, true, []], ['isUserDefined', null, true, []], ['isInstantiable', null, true, []], ['isCloneable', null, true, []], ['getFileName', null, '', []], ['getStartLine', null, 123, []], ['getEndLine', null, 123, []], ['getDocComment', null, '', []], ['getConstructor', null, $mockMethod, []], ['hasMethod', null, true, ['foo']], ['getMethod', null, $mockMethod, ['foo']], ['getMethods', null, [$mockMethod], []], ['hasProperty', null, true, ['foo']], ['getProperty', null, $mockProperty, ['foo']], ['getProperties', null, [$mockProperty], []], ['hasConstant', null, true, ['foo']], ['getConstant', null, 'a', ['foo']], ['getConstants', null, ['a', 'b'], []], ['getInterfaces', null, [$mockClassLike], []], ['getInterfaceNames', null, ['a', 'b'], []], ['isInterface', null, true, []], ['getTraits', null, [$mockClassLike], []], ['getTraitNames', null, ['a', 'b'], []], ['getTraitAliases', null, ['a', 'b'], []], ['isTrait', null, true, []], ['isAbstract', null, true, []], ['isFinal', null, true, []], ['getModifiers', null, 123, []], ['isInstance', null, true, [new \stdClass()]], ['newInstance', NotImplemented::class, null, []], ['newInstanceWithoutConstructor', NotImplemented::class, null, []], ['newInstanceArgs', NotImplemented::class, null, []], ['getParentClass', null, $mockClassLike, []], ['isSubclassOf', null, true, ['\\stdClass']], ['getStaticProperties', NotImplemented::class, null, []], ['getStaticPropertyValue', NotImplemented::class, null, ['foo']], ['setStaticPropertyValue', NotImplemented::class, null, ['foo', 'bar']], ['getDefaultProperties', null, ['foo' => 'bar'], []], ['isIterateable', null, true, []], ['implementsInterface', null, true, ['\\Traversable']], ['getExtension', NotImplemented::class, null, []], ['getExtensionName', NotImplemented::class, null, []], ['inNamespace', null, true, []], ['getNamespaceName', null, '', []], ['getShortName', null, '', []]];
    }