Skip to content

Commit

Permalink
modify README
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphhh committed Jun 10, 2014
1 parent 3638fb2 commit 2cce4c5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Expand Up @@ -37,16 +37,16 @@ For example
class FooTest extends Pumpkin\TestCase{

function testA(){
$this->getTest()->getName(); //FooTest::testA
$this->getTest()->getReflectedTestMethod()->getName(); //FooTest::testA
}

function testB(){
$this->getTest()->getName(); //FooTest::testB
$this->getTest()->getReflectedTestMethod()->getName(); //FooTest::testB
}
}
```

With this object you can reflected the method of the executed test, retrieve annotations, ... anything!
With this method you can reflected the method of the executed test, retrieve annotations, ... anything!


### Get mocks of the current test
Expand All @@ -58,8 +58,12 @@ The file is located in the following path:
/resources/mocks/{ClassTestName}/{methodName}.php
```

This path can start from the test directory or from a parent one.

You can declare as many mocks as you want in this file.



For example

```php
Expand Down Expand Up @@ -118,7 +122,7 @@ The data are stored in a file with the following path:

Currently, Pumpkin support only csv files, but it can be evolved in future.

Your data can be specific for the current test, or be common with several tests. Everything is determined by the data file path. If you want specific data, you have to locate the data file in the directory of your test. If you want common data, you hace to locate the data file in a common directory of your tests.
Your data can be specific for the current test, or be common with several tests. Everything is determined by the data file path. If you want specific data, you have to locate the data file in the directory of your test. If you want common data, you have to locate the data file in a common directory of your tests.


#### The database config
Expand Down

0 comments on commit 2cce4c5

Please sign in to comment.