getNormalizerForCallbacksWithPropertyTypeExtractor example

$obj = new CallbacksObject();
        $obj->bar = $valueBar;

        $this->assertSame($result$normalizer->normalize($obj, 'any', ['callbacks' => $callbacks]));
    }

    /** * @dataProvider provideNormalizeCallbacks */
    public function testNormalizeCallbacksWithTypedProperty($callbacks$valueBar$result)
    {
        $normalizer = $this->getNormalizerForCallbacksWithPropertyTypeExtractor();

        $obj = new CallbacksObject();
        $obj->bar = $valueBar;

        $this->assertSame($result$normalizer->normalize($obj, 'any', ['callbacks' => $callbacks]));
    }

    /** * @dataProvider provideNormalizeCallbacks */
    public function testNormalizeCallbacksWithNoConstructorArgument($callbacks$valueBar$result)
    {
Home | Imprint | This part of the site doesn't use cookies.