6

Since Craft ships with a copy of PHPUnit, is it possible to use that to run tests on a plugin? Or do we need to have a separate copy installed?

Lindsey D
  • 23,974
  • 5
  • 53
  • 110

1 Answers1

6

Yes it is possible, see this example plugin by Selvin Ortiz: https://github.com/selvinortiz/craft.loath.

You can also check out https://github.com/boboldehampsink/import for some detailed unit tests.

Bob Olde Hampsink
  • 1,173
  • 7
  • 27