Hi, I have this strange problem that took me a couple of hours to look in what circumstances it appears and reduce the possibilities to the minimum.
With this example entity:http://pastebin.com/yerD7WnX And this example tests: http://pastebin.com/tYEeqPRv It throws this exception: RuntimeException: Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in - on line 32 Exception: Serialization of 'SimpleXMLElement' is not allowed in - on line 32 Call Stack: 0.0009 356016 1. {main}() -:0 0.0503 2366976 2. __phpunit_run_isolated_test() -:107 0.1236 5747644 3. serialize() -:32 Note that the tests have no meaning at all. The assertions have nothing to do with the validator. But, if you remove the line I show you in the code (the one where I validate the object), no exception is thrown, and the test fails as it should be. It seems to throw the exception in cases where an assertion fails. The code I put in the setUp method is there in the example to simplify a bit what I want to show you. I have that logic refactored in another class, but does essentially the same thing. I removed all the fields from my entity to simplify more the example. You can use any entity on the test. I use ubuntu 10 with apache and PHP 5.3.3. I have updated all my vendors last week. I don't know the internals of the assertion methods and the validator, so I'm sure I'm doing something wrong, but I can't figure out what. Thanks. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
