/** * @group reports * @param CliGuy $I */ public function runXmlReportsInStrictMode(\CliGuy $I) { $I->wantTo('check xml in strict mode'); $I->executeCommand('run dummy --xml -c codeception_strict_xml.yml'); $I->seeFileFound('report.xml', 'tests/_output'); $I->seeInThisFile('<?xml'); $I->seeInThisFile('<testsuite name="dummy"'); $I->seeInThisFile('<testcase name="FileExists"'); $I->dontSeeInThisFile('feature="'); }
public function bootstrapWithNamespace(\CliGuy $I) { $I->executeCommand('bootstrap --namespace Generated'); $I->seeInShellOutput('Building Actor classes for suites'); $I->seeFileFound('codeception.yml'); $I->seeInThisFile('namespace: Generated'); $I->dontSeeInThisFile('namespace Generated\\'); $this->checkFilesCreated($I); $I->seeFileFound('Acceptance.php', 'tests/_support/Helper'); $I->seeInThisFile('namespace Generated\\Helper;'); $I->seeFileFound('AcceptanceTester.php', 'tests/_support'); $I->seeInThisFile('namespace Generated;'); }
public function bootstrapCompatibilityWithNamespace(\CliGuy $I) { $I->executeCommand('bootstrap --namespace Generated --compat'); $I->seeInShellOutput('Building Actor classes for suites'); $I->seeFileFound('codeception.yml'); $I->seeInThisFile('namespace: Generated'); $I->dontSeeInThisFile('namespace Generated\\'); $this->checkCompatFilesCreated($I); $I->seeFileFound('WebHelper.php'); $I->seeInThisFile('namespace Generated\\Codeception\\Module;'); $I->seeFileFound('WebGuy.php'); $I->seeInThisFile('namespace Generated;'); }
public function bootstrapWithNamespace(\CliGuy $I) { $I->amInPath('tests/data/sandbox/tests/_data/'); $I->executeCommand('bootstrap --namespace Generated'); $I->seeInShellOutput('Building Guy classes for suites'); $I->seeFileFound('codeception.yml'); $I->seeInThisFile('namespace: Generated'); $I->dontSeeInThisFile('namespace Generated\\'); $this->checkFilesCreated($I); $I->seeFileFound('WebHelper.php'); $I->seeInThisFile('namespace Generated\\Codeception\\Module;'); $I->seeFileFound('WebGuy.php'); $I->seeInThisFile('namespace Generated;'); }