101 reputation
1
bio website
location
age
visits member for 3 years, 3 months
seen May 9 at 10:55

May
9
comment How can I set a draft page as parent without publishing?
This is the solution.
Oct
24
comment How to debug a unit test for a WordPress plugin, which uses wordpress-test?
ah I totally forgot system() is not OS agnostic.. I'm using Windows maybe that has something to do with it? In Windows (commandline) one sets env vars with SET {VARNAME}={VALUE}. Anywho, I also noticed I've created the database for the WP tests beforehand manually so perhaps that's why I could comment out that line. Arguably not the most ideal solution as I have to write drop/delete statements to clean up integration tests but it works.
Oct
23
comment How to debug a unit test for a WordPress plugin, which uses wordpress-test?
Oh, I noticed adding 'XDEBUG_CONFIG="remote_enable=Off"' doesn't really do anything. PHP tries to execute the program XDEBUG_CONFIG and naturally fails. Commenting out the entire system function call gives the same result while avoiding an error
Oct
22
comment How to debug a unit test for a WordPress plugin, which uses wordpress-test?
A nice catch. I wonder why no more people are complaining about this issue? And is changing the official source code really the only way? Is it possible to solve this in a more clean way be for example checking if xdebug is already opened and if yes, connect to the existing instance instead of creating a new as is attempted here? I suspect if you run this modified source code outside of NetBeans it won't connect to xdebug because we explicitly set remote_enable=off?
Oct
22
awarded  Supporter