Skip to content

Commit

Permalink
updated version, updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jun 29, 2016
1 parent 68518dc commit d58d554
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name":"codeception/codeception",
"name":"codeception/base",
"description":"BDD-style testing framework",
"keywords":["BDD", "acceptance testing", "functional testing", "unit testing", "tdd"],
"homepage":"http://codeception.com/",
Expand All @@ -20,8 +20,7 @@
"ext-mbstring": "*",
"phpunit/phpunit": ">4.8.20 <5.5",
"phpunit/php-code-coverage": ">=2.1.3",
"facebook/webdriver": ">=1.0.1 <2.0",
"guzzlehttp/guzzle": ">=4.1.4 <7.0",

"guzzlehttp/psr7": "~1.0",
"symfony/finder": ">=2.7 <4.0",
"symfony/console": ">=2.7 <4.0",
Expand Down
8 changes: 8 additions & 0 deletions docs/modules/Yii1.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ Do not forget that after adding module in your functional.suite.yml you must run

### Parts

If you ever encounter error message:

```
Yii1 module conflicts with WebDriver
```

you should include Yii module partially, with `init` part only

* `init`: only initializes module and not provides any actions from it. Can be used for unit/acceptance tests to avoid conflicts.

### Acceptance Testing Example:
Expand Down
21 changes: 20 additions & 1 deletion docs/modules/ZF2.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,30 @@ Uses `tests/application.config.php` config file by default.

* config: relative path to config file (default: `tests/application.config.php`)

## API
## Public Properties

* application - instance of `\Zend\Mvc\ApplicationInterface`
* db - instance of `\Zend\Db\Adapter\AdapterInterface`
* client - BrowserKit client

## Parts

* services - allows to use grabServiceFromContainer with WebDriver or PhpBrowser modules.

Usage example:

```yaml
class_name: AcceptanceTester
modules:
enabled:
- ZF2:
part: services
- Doctrine2:
depends: ZF2
- WebDriver:
url: http://your-url.com
browser: phantomjs
```
## Actions
Expand Down Expand Up @@ -600,6 +618,7 @@ $em = $I->grabServiceFromContainer('Doctrine\ORM\EntityManager');
```

* `param` $service
* `[Part]` services


### grabTextFrom
Expand Down
2 changes: 1 addition & 1 deletion src/Codeception/Codecept.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Codecept
{
const VERSION = "2.2.1";
const VERSION = "2.2.2";

/**
* @var \Codeception\PHPUnit\Runner
Expand Down

0 comments on commit d58d554

Please sign in to comment.