前の続き WordPress+PHPUnitで検索したところ、 WordPress › Support » Running WordPress tests with PHPUnit もあったのだけど、自分は http://stackoverflow.com/questions/9138215/unit-testing-wordpress-plugins からnb/wordpress-tests · GitHubを使用した。 wp-contents/plugins/pubman/tests/ に、ダウンロードしたwordpress-testsを一式置いて、 unittests-config.php を作成。この中身は、ほとんどwp-config.phpのDefineだけなんだけど、 $table_prefix = 'wp_'; と <?php // test settings テスト用にbo