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

Mocking SimpleXMLElement #233

Open
msieprawski opened this issue Mar 13, 2017 · 0 comments
Open

Mocking SimpleXMLElement #233

msieprawski opened this issue Mar 13, 2017 · 0 comments

Comments

@msieprawski
Copy link

Hello,

First of all - many thanks for the package, it's very useful, I'm using it in all projects. Recently I've encountered a problem when trying to mock SimpleXMLElement class:

use Phake as p;
$xml = p::mock('SimpleXMLElement');

And the error is:
Phake_ClassGenerator_MockClass::instantiate(): Node no longer exists

Any ideas, any workaround? Thanks!

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

1 participant