GenerateTestCept.php 360 B

123456789
  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 $guy');
  9. $I->seeInThisFile("function _before(");