UnitTester.php 800 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Inherited Methods
  4. * @method void wantToTest($text)
  5. * @method void wantTo($text)
  6. * @method void execute($callable)
  7. * @method void expectTo($prediction)
  8. * @method void expect($prediction)
  9. * @method void amGoingTo($argumentation)
  10. * @method void am($role)
  11. * @method void lookForwardTo($achieveValue)
  12. * @method void comment($description)
  13. * @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
  14. *
  15. * @SuppressWarnings(PHPMD)
  16. */
  17. class UnitTester extends \Codeception\Actor
  18. {
  19. use _generated\UnitTesterActions;
  20. public function getOutputPathForChart($chartFilename)
  21. {
  22. return sprintf("%s/../_output/charts/%s", __DIR__, $chartFilename);
  23. }
  24. public function getCacheDirectory()
  25. {
  26. return sprintf("%s/../../cache", __DIR__);
  27. }
  28. }