EmulateModuleHelper.php 616 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Codeception\Module;
  3. // here you can define custom functions for CodeGuy
  4. class EmulateModuleHelper extends \Codeception\Module
  5. {
  6. public $assertions = 0;
  7. public function seeEquals($expected, $actual)
  8. {
  9. \PHPUnit_Framework_Assert::assertEquals($expected, $actual);
  10. $this->assertions++;
  11. }
  12. public function seeFeaturesEquals($expected)
  13. {
  14. \PHPUnit_Framework_Assert::assertEquals($expected, $this->feature);
  15. }
  16. public function _before(\Codeception\TestInterface $test)
  17. {
  18. $this->feature = $test->getMetadata()->getFeature();
  19. }
  20. }