Hi. I’m trying to build unit tests for some new stuff we’re building using Aerospike, and if I try and mock Aerospike, I get the following:
PHPUnit_Framework_Exception: Class "Aerospike" is declared "final" and cannot be mocked.
Ideally I want to be able to mock Aerospike in order to return specific results / not interface with Aerospike itself etc the same as I would do with PDO for example.
Was hoping I’d be able to do it sooner rather than later lol. I’m looking at PHP7 now, so support would be great - the benefits of PHP7 are amazing over 5.6.x
Anything you’d need in order to be able to look into it? If you need examples of PDO etc, let me know so I can explain the kind of thing I’m looking to achieve.
Within the client repo itself there is a PHP stub under docs/phpdoc. You can import the stub into your IDE for auto-completion, or build the API documentation using phpDocumentor