GenerateTestCept.php 363 B

12345678910
  1. <?php
  2. $I = new CliGuy\GeneratorSteps($scenario);
  3. $I->wantTo('generate sample Test');
  4. $I->amInPath('tests/data/sandbox');
  5. $I->executeCommand('generate:test dummy Sommy');
  6. $I->seeFileWithGeneratedClass('SommyTest');
  7. $I->seeInThisFile('class SommyTest extends \Codeception\Test\Unit');
  8. $I->seeInThisFile('protected $tester');
  9. $I->seeInThisFile("function _before(");