Skip to content

Commit dc9780f

Browse files
committed
tests refactored
1 parent 634fc02 commit dc9780f

26 files changed

Lines changed: 330 additions & 60 deletions

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Codeception
22

3-
[![Build Status](https://secure.travis-ci.org/Codeception/Codeception.png?branch=master)](http://travis-ci.org/Codeception/codeception)
3+
[![Build Status](https://secure.travis-ci.org/Codeception/Codeception.png?branch=master)](http://travis-ci.org/Codeception/Codeception)
44

55
Codeception is a new PHP full-stack testing framework.
66
Inspired by BDD, it provides you an absolutely new way of writing acceptance, functional and even unit tests.

src/Codeception/Command/GenerateSuite.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
class GenerateSuite extends Base
1414
{
15-
protected $template = "<?php\n\$I = new %s(\$scenario);\n\$I->wantTo('perform actions and see result');\n";
16-
1715
protected function configure()
1816
{
1917
$this->setDefinition(array(
@@ -50,7 +48,7 @@ public function execute(InputInterface $input, OutputInterface $output)
5048
$guyname = substr($guy,0,-3);
5149

5250
// generate helper
53-
file_put_contents(\Codeception\Configuration::projectDir().$config['paths']['helpers'].DIRECTORY_SEPARATOR.$guyname.'Helper.php', "<?php\nnamespace Codeception\\Module;\n\nrequire_once 'PHPUnit/Framework/Assert/Functions.php';\n\n// here you can define custom functions for $guy \n\nclass {$guyname}Helper extends \\Codeception\\Module\n{\n}\n");
51+
file_put_contents(\Codeception\Configuration::projectDir().$config['paths']['helpers'].DIRECTORY_SEPARATOR.$guyname.'Helper.php', "<?php\nnamespace Codeception\\Module;\n\n// here you can define custom functions for $guy \n\nclass {$guyname}Helper extends \\Codeception\\Module\n{\n}\n");
5452

5553
$conf = array(
5654
'class_name' => $guy,

tests/acceptance.suite.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/acceptance/_bootstrap.php

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/cli.suite.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class_name: CliGuy
2+
modules:
3+
enabled:
4+
- Filesystem
5+
- Cli
6+
- CliHelper
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -295,22 +295,5 @@ public function dontSeeInShellOutput($text) {
295295
}
296296
return new Maybe();
297297
}
298-
299-
300-
/**
301-
*
302-
* @see CliHelper::executeCommand()
303-
*
304-
* ! This method is generated. DO NOT EDIT. !
305-
* ! Documentation taken from corresponding module !
306-
*/
307-
public function executeCommand($command) {
308-
$this->scenario->action('executeCommand', func_get_args());
309-
if ($this->scenario->running()) {
310-
$result = $this->scenario->runStep();
311-
return new Maybe($result);
312-
}
313-
return new Maybe();
314-
}
315298
}
316299

File renamed without changes.

0 commit comments

Comments
 (0)