Skip to content

Instantly share code, notes, and snippets.

@adri
Created January 20, 2014 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adri/8528349 to your computer and use it in GitHub Desktop.
Save adri/8528349 to your computer and use it in GitHub Desktop.
Serialization of 'SimpleXMLElement' is not allowed' on OpenSuse 12.1
opensuse-121-x64:~/wsdl2phpgenerator(php-vcr-test-fixtures)]$ phpunit
PHPUnit 3.7.29 by Sebastian Bergmann.
Configuration read from /home/vagrant/wsdl2phpgenerator/phpunit.xml.dist
........................EEEEE
Time: 11.49 seconds, Memory: 11.75Mb
There were 5 errors:
1) Wsdl2PhpGenerator\Tests\Functional\AmazonEc2Test::testNonStandardNamespace
PHPUnit_Framework_Exception: PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in -:49
Stack trace:
#0 -(49): serialize(Array)
#1 -(195): __phpunit_run_isolated_test()
#2 {main}
thrown in - on line 49
Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in - on line 49
Exception: Serialization of 'SimpleXMLElement' is not allowed in - on line 49
Call Stack:
0.0016 738296 1. {main}() -:0
0.0542 5314992 2. __phpunit_run_isolated_test() -:195
0.2437 10282960 3. serialize() -:49
2) Wsdl2PhpGenerator\Tests\Functional\CurrencyConverterTest::testCurrencyConvertor
PHPUnit_Framework_Exception: PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in -:49
Stack trace:
#0 -(49): serialize(Array)
#1 -(195): __phpunit_run_isolated_test()
#2 {main}
thrown in - on line 49
Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in - on line 49
Exception: Serialization of 'SimpleXMLElement' is not allowed in - on line 49
Call Stack:
0.0017 738328 1. {main}() -:0
0.0582 5315200 2. __phpunit_run_isolated_test() -:195
0.2006 8612264 3. serialize() -:49
3) Wsdl2PhpGenerator\Tests\Functional\MsSequelServerNativeWebServicesTest::testEnumConstants
PHPUnit_Framework_Exception: PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in -:49
Stack trace:
#0 -(49): serialize(Array)
#1 -(195): __phpunit_run_isolated_test()
#2 {main}
thrown in - on line 49
Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in - on line 49
Exception: Serialization of 'SimpleXMLElement' is not allowed in - on line 49
Call Stack:
0.0011 738352 1. {main}() -:0
0.0578 5315200 2. __phpunit_run_isolated_test() -:195
0.2008 8661368 3. serialize() -:49
4) Wsdl2PhpGenerator\Tests\Functional\NaicsTest::testNaics
PHPUnit_Framework_Exception: PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in -:49
Stack trace:
#0 -(49): serialize(Array)
#1 -(195): __phpunit_run_isolated_test()
#2 {main}
thrown in - on line 49
Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in - on line 49
Exception: Serialization of 'SimpleXMLElement' is not allowed in - on line 49
Call Stack:
0.0020 738256 1. {main}() -:0
0.0570 5315048 2. __phpunit_run_isolated_test() -:195
0.2006 8599696 3. serialize() -:49
5) Wsdl2PhpGenerator\Tests\Functional\PayPalSvcTest::testRelativeImportPaths
PHPUnit_Framework_Exception: PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in -:49
Stack trace:
#0 -(49): serialize(Array)
#1 -(195): __phpunit_run_isolated_test()
#2 {main}
thrown in - on line 49
Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in - on line 49
Exception: Serialization of 'SimpleXMLElement' is not allowed in - on line 49
Call Stack:
0.0026 738288 1. {main}() -:0
0.0648 5315048 2. __phpunit_run_isolated_test() -:195
0.2717 10232888 3. serialize() -:49
FAILURES!
Tests: 29, Assertions: 87, Errors: 5.
Generating code coverage report in Clover XML format ... done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment