Skip to content

Commit 215eeb0

Browse files
committed
updated docs with new test command
1 parent 607806a commit 215eeb0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The recommended way to install the SparkPost PHP SDK is through composer.
1313
# Install Composer
1414
curl -sS https://getcomposer.org/installer | php
1515
```
16-
Next, run the Composer command to install the SparkPost PHP SDK:
16+
Next, run the Composer command to install the SparkPost PHP SDK:
1717
```
1818
composer require sparkpost/php-sparkpost
1919
```
@@ -28,7 +28,7 @@ SparkPost::setConfig(["key"=>"YOUR API KEY"]);
2828
2929
try {
3030
// Build your email and send it!
31-
Transmission::send(array('campaign'=>'first-mailing',
31+
Transmission::send(array('campaign'=>'first-mailing',
3232
'from'=>'you@your-company.com',
3333
'subject'=>'First SDK Mailing',
3434
'html'=>'<html><body><h1>Congratulations, {{name}}!</h1><p>You just sent your very first mailing!</p></body></html>',
@@ -92,13 +92,10 @@ try {
9292
Run `composer install` inside the directory to install dependecies and development tools.
9393

9494
### Testing
95-
Once all the dependencies are installed, you can execute the unit tests using `vendor/bin/phpunit --bootstrap test/unit/bootstrap.php ./test/unit`.
96-
97-
If you're interested in code coverage, you can add the `--coverage` flag for phpunit like so: ```phpunit --coverage-html test/output/report --bootstrap test/unit/bootstrap.php ./test/unit```
95+
Once all the dependencies are installed, you can execute the unit tests using ```composer test```.
9896

9997
### Contributing
10098
1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
10199
2. Fork [the repository](http://github.com/SparkPost/php-sparkpost) on GitHub to start making your changes to the **master** branch (or branch off of it).
102100
3. Write a test which shows that the bug was fixed or that the feature works as expected.
103101
4. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to [AUTHORS](https://github.com/SparkPost/php-sparkpost/blob/master/AUTHORS.md).
104-

0 commit comments

Comments
 (0)