Symfony\Component\Serializer\Tests\Normalizer\ObjectNormalizerTest::testIgnoredAttributes PHP Method

testIgnoredAttributes() public method

    public function testIgnoredAttributes()
    {
        $this->normalizer->setIgnoredAttributes(array('foo', 'bar', 'baz', 'camelCase', 'object'));
        $obj = new ObjectDummy();
        $obj->setFoo('foo');
        $obj->bar = 'bar';
        $obj->setBaz(true);
        $this->assertEquals(array('fooBar' => 'foobar'), $this->normalizer->normalize($obj, 'any'));
    }