peridot-php / peridot

Event driven BDD test framework for PHP
http://peridot-php.github.io/
MIT License
328 stars 27 forks source link

Wordpress? #180

Closed davidsoderberg closed 8 years ago

davidsoderberg commented 8 years ago

Hi, how easy is it to get this to test Wordpress?

brianium commented 8 years ago

I have used it to test plugins. It depends on how much you want to test WordPress. Mockery is a good tool to use in conjunction with Peridot if you want to mock global functions, otherwise your peridot.php file can include wp-load.php. I prefer the former, but it requires a little more setup