Skip to content

Commit 20d5731

Browse files
committed
first unit test
1 parent 4b340e5 commit 20d5731

File tree

9 files changed

+1909
-231
lines changed

9 files changed

+1909
-231
lines changed

.DS_Store

6 KB
Binary file not shown.

.idea/workspace.xml

Lines changed: 154 additions & 225 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace A6\CodeceptIsAwesomeBundle\Service;
4+
5+
class ReverseStringService
6+
{
7+
public function reverse($string)
8+
{
9+
return strrev($string);
10+
}
11+
}

tests/functional.suite.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,14 @@
66

77
class_name: FunctionalTester
88
modules:
9-
enabled: [Filesystem, FunctionalHelper]
9+
enabled:
10+
- Filesystem
11+
- FunctionalHelper
12+
- Symfony2
13+
- Doctrine2
14+
config:
15+
Symfony2:
16+
var_path: 'var' # only required if using Symfony 3 directory structure, otherwise defaults to 'app'
17+
app_dir: 'app'
18+
environment: codecept
19+
debug: true

tests/functional/FirstCept.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
$i = new FunctionalTester($scenario);
3+
$i->wantTo('perform actions and see result');
4+
$i->amOnPage('/');
5+
$i->see('Some other text here');

0 commit comments

Comments
 (0)