0

I'm trying to set up PHPUnit with WordPress, and the tutorial I found tells me to download this repository so that I can bootstrap the WordPress environment to run my tests. The only issue I have is that the repo was last changed 3 - 4 years ago, which is a long time.

I have also googled a little but, and found a guide for how to set up tests with PHPUnit in WebStorm, but that site were also linking to the same repo.

Does anyone have any experience using this, or using PHPUnit with WordPress?

1

That seems to be an old repo, you should use https://core.trac.wordpress.org/browser/trunk/tests. Obviously trunk should be used if you want to use the tests with 4.6. Not sure how much difference there is in the infrastructure between the version (in other words, it is unlikely that you care how core does a specific test, therefor the staleness of the core tests might not be an issue at all)

| improve this answer | |
  • Having a bit of trouble finding the link to the svn repo from trac, though. – ptf Jul 29 '16 at 11:35
  • been awhile, but it is just in the general SVN, you can just navigate to locate the directory – Mark Kaplun Jul 29 '16 at 11:41
  • or download all of the sources from here - core.trac.wordpress.org/browser/trunk?order=name bottom of the page include a link to a zip – Mark Kaplun Jul 29 '16 at 11:43
  • Thanks, I just downloaded the zip. Might look into the svn option later. – ptf Jul 29 '16 at 11:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.