How to debug a unit test for a WordPress plugin, which uses wordpress-test?

Now I’ve found a solution [to issue 2 above]: I prefixed the external PHP command with: XDEBUG_CONFIG=”remote_enable=Off” and then it didn’t attempt to connect to the debugger. So, in wordpress-tests/init.php I changed from: system( WP_PHP_BINARY . ‘ ‘ . escapeshellarg( dirname( __FILE__ ) . ‘/bin/install.php’ ) . ‘ ‘ . escapeshellarg( $config_file_path ) ); to: … Read more

Which themes do you use to test compatibilities with your plugin [closed]

Themes, anyone? I don’t test »against« or »with« themes. Just with some other plugins that might conflict (but I normally leave that open until something happens – you’ll never figure out all edge cases). At least, you’re intercepting/extending/altering stuff via filters. So why test against themes, when you’re modifying core functions? If you’re intercepting the_content … Read more

Resizing Images for a Gallery-Plugin?

Its best practice to always use internal WordPress API functions that already exist in place of external scripts. You would need to regenerate the thumbnails yourself, which is not overly difficult, if for instance you give yourself a head start and study the source code of existing and similar solutions; Regenerate Thumbnails Plugin http://wordpress.org/extend/plugins/regenerate-thumbnails/ browse … Read more