Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error in Patchwork: "Only variables should be passed by reference" #2
I have been trying to get going with Patchwork, in order to help me write unit tests to a legacy PHP codebase. Unfortunately, I have run into an error which I can't resolve.
Whenever I try to call an overridden method, I get the following error: "Only variables should be passed by reference"
I have a very simple test case that demonstrates this:
Then at the command prompt, I get the following:
Any idea what I'm doing wrong here? Or have I found a bug in Patchwork?
The above is the simplest possible example I could come up with in the context of PHPUnit (ie how I want to use it). It also throws the same error when written as a simple PHP program.
PHP version 5.3.8 on Windows7.