Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failing for AccessorOrder #113

Closed
marcammann opened this issue May 7, 2012 · 1 comment
Closed

Tests failing for AccessorOrder #113

marcammann opened this issue May 7, 2012 · 1 comment

Comments

@marcammann
Copy link

I tried to get the tests running and I ran into some troubles with the AccessorOrder.
It looks like the Doctrine AnnotationReader is trying to create an AccessorOrder object, but the constructor is not there and thus not creating a valid AccessorOrder object. However, if I add a constructor to AccessorOrder, the tests fail because sorting is broken.
I haven't looked into this much further from that point on.

PHPUnit Output

PHPUnit 3.6.10 by Sebastian Bergmann.

Configuration read from /Users/mammann/Work/Astral/Web/Astral/vendor/bundles/JMS/SerializerBundle/phpunit.xml

..................................E...........E................ 63 / 121 ( 52%)
.......E...........E.SSSS....................E.......E..

Time: 1 second, Memory: 19.50Mb

There were 6 errors:

  1. JMS\SerializerBundle\Tests\Serializer\JsonSerializationTest::testInline
    InvalidArgumentException: The accessor order "" is invalid.

  2. JMS\SerializerBundle\Tests\Serializer\JsonSerializationTest::testAccessorOrder
    InvalidArgumentException: The accessor order "" is invalid.

  3. JMS\SerializerBundle\Tests\Serializer\XmlSerializationTest::testInline
    InvalidArgumentException: The accessor order "" is invalid.

  4. JMS\SerializerBundle\Tests\Serializer\XmlSerializationTest::testAccessorOrder
    InvalidArgumentException: The accessor order "" is invalid.

  5. JMS\SerializerBundle\Tests\Serializer\YamlSerializationTest::testInline
    InvalidArgumentException: The accessor order "" is invalid.

  6. JMS\SerializerBundle\Tests\Serializer\YamlSerializationTest::testAccessorOrder
    InvalidArgumentException: The accessor order "" is invalid.

FAILURES!
Tests: 119, Assertions: 400, Errors: 6, Skipped: 4.

@schmittjoh
Copy link
Owner

Not sure, they are working for me.

chasewoo pushed a commit to royuan/JMSSerializerBundle that referenced this issue Aug 7, 2013
…getter

Add Serializer::getMetadataFactory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants