Skip to content

Unable to mock Memcached class in version 2.2.0 of extension. #147

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

Closed
taylorotwell opened this issue Aug 24, 2014 · 1 comment
Closed

Unable to mock Memcached class in version 2.2.0 of extension. #147

taylorotwell opened this issue Aug 24, 2014 · 1 comment

Comments

@taylorotwell
Copy link

See issue here: sebastianbergmann/phpunit-mock-objects#192

Essentially, it does not appear the extension is providing the correct information to the Reflection API (for the get method at least), therefore it unable to be mocked by both PHPUnit and Mockery.

Declaration of Mock_Memcached_f86666d0::get() should be compatible with Memcached::get($key, $cache_cb = NULL, &$cas_token = NULL, &$udf_flags = NULL)

A simple $this->getMock('Memcached') in PHPUnit will demonstrate the issue.

@mkoppanen
Copy link
Member

Duplicate of #126

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