CestTest.php 806 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Class CestTest
  4. */
  5. class CestTest extends \Codeception\Test\Unit
  6. {
  7. /**
  8. * @group core
  9. */
  10. public function testCestNamings()
  11. {
  12. $klass = new stdClass();
  13. $cest = new \Codeception\Test\Cest($klass, 'user', 'tests/cli/BootstrapCest.php');
  14. $path = 'tests' . DIRECTORY_SEPARATOR . 'cli' . DIRECTORY_SEPARATOR;
  15. $this->assertEquals(
  16. $path . 'BootstrapCest.php',
  17. \Codeception\Test\Descriptor::getTestFileName($cest)
  18. );
  19. $this->assertEquals(
  20. $path . 'BootstrapCest.php:user',
  21. \Codeception\Test\Descriptor::getTestFullName($cest)
  22. );
  23. $this->assertEquals(
  24. 'stdClass:user',
  25. \Codeception\Test\Descriptor::getTestSignature($cest)
  26. );
  27. }
  28. }