Skip to content

Commit 345d96c

Browse files
committed
Merge branch 'release/0.1.1'
2 parents a916601 + 2ca3b87 commit 345d96c

18 files changed

+635
-702
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ SparkPost::setConfig(["key"=>"YOUR API KEY"]);
2626
2727
try {
2828
// Build your email and send it!
29-
Transmission::send(['campaign'=>'first-mailing',
29+
Transmission::send(array('campaign'=>'first-mailing',
3030
'from'=>'you@your-company.com',
3131
'subject'=>'First SDK Mailing',
3232
'html'=>'<html><body><h1>Congratulations, {{name}}!</h1><p>You just sent your very first mailing!</p></body></html>',
3333
'text'=>'Congratulations, {{name}}!! You just sent your very first mailing!',
34-
'substitutionData'=>['name'=>'YOUR FIRST NAME'],
35-
'recipients'=>[['address'=>['name'=>'YOUR FULL NAME', 'email'=>'YOUR EMAIL ADDRESS' ]]]
36-
]);
34+
'substitutionData'=>array('name'=>'YOUR FIRST NAME'),
35+
'recipients'=>array(array('address'=>array('name'=>'YOUR FULL NAME', 'email'=>'YOUR EMAIL ADDRESS' )))
36+
));
3737
3838
echo 'Woohoo! You just sent your first mailing!';
3939
} catch (Exception $err) {
@@ -87,12 +87,12 @@ try {
8787
## Development
8888

8989
### Setup
90-
We use [Robo](http://robo.li/) for our task runner.
91-
92-
Run `composer install` inside the directory to install dependecies and development tools including Robo.
90+
Run `composer install` inside the directory to install dependecies and development tools.
9391

9492
### Testing
95-
Once all the dependencies are installed, you can execute the unit tests using `vendor\bin\robo test`
93+
Once all the dependencies are installed, you can execute the unit tests using `vendor/bin/phpunit --bootstrap test/unit/bootstrap.php ./test/unit`.
94+
95+
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```
9696

9797
### Contributing
9898
Guidelines for adding issues

RoboFile.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
],
1010
"minimum-stability": "stable",
1111
"require": {
12-
"php": ">=5.6.1",
13-
"guzzlehttp/guzzle": "5.0.1"
12+
"php": ">=5.3.0",
13+
"guzzlehttp/guzzle": "3.8.1"
1414
},
1515
"require-dev": {
16-
"phpunit/phpunit": "4.3.*",
17-
"codegyre/robo": "0.4.6"
16+
"phpunit/phpunit": "4.3.*"
1817
},
1918
"autoload": {
2019
"psr-4": {
21-
"SparkPost\\": "lib/SparkPost/"
20+
"SparkPost\\": "lib/SparkPost/",
21+
"SparkPost\\SendGridCompatibility\\": "lib/SendGridCompatibility/"
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)