Skip to content

Commit

Permalink
Merge pull request #12 from gayanhewa/master
Browse files Browse the repository at this point in the history
Running the unit tests.
  • Loading branch information
JacobBennett committed May 8, 2014
2 parents b5477d2 + 199ba9a commit c415151
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,19 @@ Change or get the list you are currently working with.
//get the current list id
echo $sendy->getListId();
```

#Unit tests
All unit tests are located under src/test directory. To run the tests type in the below from the project root.
```shell
php vendor/bin/phpunit src/test/SendyPHPTest.php
```

Ensure that the API keys are setup for testing :
```php

$config = [
'api_key' => 'xxx', //your API key is available in Settings
'installation_url' => 'http://my.sendy.installation.com', //Your Sendy installation
'list_id' => 'xxx'// List ID
];
```

0 comments on commit c415151

Please sign in to comment.