Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Davert committed Apr 5, 2013
1 parent 5caae0e commit fd508eb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
Binary file removed Codeception-1.5.6.tgz
Binary file not shown.
34 changes: 2 additions & 32 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 30,8 @@ $I->seeInCurrentUrl('pages/tree-of-life-movie-review'); // slug is generated
$I->seeInDatabase('pages', array('title' => 'Tree of Life Movie Review')); // data is stored in database
?>
```
Ok, as for unit test similar approach may seem weird, but...

Take a look at this:

#### Sample unit test

``` php
<?php
class UserControllerCest {
public $class = 'UserController';

public function createAction(CodeGuy $I)
{
$I->haveFakeClass($userController = Stub::makeEmptyExcept('UserController'));
$I->executeTestedMethodOn($userController, array('username' => 'MilesDavis', 'email' => '[email protected]'))
$I->seeResultEquals(true)
$I->seeMethodInvoked($userController, 'renderHtml')
$I->seeInDatabase('users', array('username' => 'MilesDavis'));
}
}
?>
```

Anyway, if you don't really like writing unit tests in DSL, Codeception can run PHPUnit tests natively.
For unit testing you can stay on classic PHPUnit tests, as Codeception can run them too.

## Documentation

Expand All @@ -63,14 41,6 @@ Documentation is currently included within the project. Look for it in the 'docs

## Installation

### PEAR
Install latest PEAR package from GitHub:

```
pear channel-discover codeception.com/pear
pear install codeception/Codeception
```

### Phar

Download [codecept.phar](https://github.com/Codeception/Codeception/raw/master/package/codecept.phar)
Expand Down Expand Up @@ -105,4 75,4 @@ See Documentation for more information.
MIT

(c) Michael Bodnarchuk "Davert"
2011-2012
2011-2013
2 changes: 0 additions & 2 deletions src/Codeception/Module/PhpBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 67,7 @@ public function _initialize() {
$curl_config = array_merge($this->curl_defaults, $this->config['curl']);
array_walk($curl_config, function($a, &$b) { $b = "curl.$b"; });


$client->setClient($this->guzzle = new Client('', $curl_config));

$this->session = new \Behat\Mink\Session($driver);
parent::_initialize();
}
Expand Down

0 comments on commit fd508eb

Please sign in to comment.