diff options
author | nornholdj <nornholdj@gmail.com> | 2014-11-13 14:03:52 -0500 |
---|---|---|
committer | nornholdj <nornholdj@gmail.com> | 2014-11-13 14:03:52 -0500 |
commit | aeb73442306e915e54d1f53d6fae68c060c57d73 (patch) | |
tree | cc29a1d69276c1d14c212a881679b309f95af66a | |
parent | b79ffee50f7d7c655a1cfcec03081a2ae138a8ea (diff) | |
download | php-sparkpost-aeb73442306e915e54d1f53d6fae68c060c57d73.zip php-sparkpost-aeb73442306e915e54d1f53d6fae68c060c57d73.tar.gz php-sparkpost-aeb73442306e915e54d1f53d6fae68c060c57d73.tar.bz2 |
MA-1084 #time 10m tested in a PHP 5.3 environment and updated README.md
-rw-r--r-- | README.md | 13 | ||||
-rw-r--r-- | RoboFile.php | 17 | ||||
-rw-r--r-- | composer.json | 3 |
3 files changed, 7 insertions, 26 deletions
@@ -26,14 +26,14 @@ SparkPost::setConfig(["key"=>"YOUR API KEY"]); try { // Build your email and send it! - Transmission::send(['campaign'=>'first-mailing', + Transmission::send(array('campaign'=>'first-mailing', 'from'=>'you@your-company.com', 'subject'=>'First SDK Mailing', 'html'=>'<html><body><h1>Congratulations, {{name}}!</h1><p>You just sent your very first mailing!</p></body></html>', 'text'=>'Congratulations, {{name}}!! You just sent your very first mailing!', - 'substitutionData'=>['name'=>'YOUR FIRST NAME'], - 'recipients'=>[['address'=>['name'=>'YOUR FULL NAME', 'email'=>'YOUR EMAIL ADDRESS' ]]] - ]); + 'substitutionData'=>array('name'=>'YOUR FIRST NAME'), + 'recipients'=>array(array('address'=>array('name'=>'YOUR FULL NAME', 'email'=>'YOUR EMAIL ADDRESS' ))) + )); echo 'Woohoo! You just sent your first mailing!'; } catch (Exception $err) { @@ -87,12 +87,11 @@ try { ## Development ### Setup -We use [Robo](http://robo.li/) for our task runner. -Run `composer install` inside the directory to install dependecies and development tools including Robo. +Run `composer install` inside the directory to install dependecies and development tools. ### Testing -Once all the dependencies are installed, you can execute the unit tests using `vendor\bin\robo test` +Once all the dependencies are installed, you can execute the unit tests using `vendor/bin/phpunit --bootstrap test/unit/bootstrap.php ./test/unit` ### Contributing Guidelines for adding issues diff --git a/RoboFile.php b/RoboFile.php deleted file mode 100644 index 9245e1b..0000000 --- a/RoboFile.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php -/** - * This is project's console commands configuration for Robo task runner. - * - * @see http://robo.li/ - */ -class RoboFile extends \Robo\Tasks -{ - public function test () { - $res = $this->taskExec('phpunit --coverage-html test/output/report --bootstrap test/unit/bootstrap.php ./test/unit')->run(); - - // print message when tests passed - if ($res->wasSuccessful()) $this->say("All tests passed"); - - return $res(); - } -} diff --git a/composer.json b/composer.json index 3a6a6a0..096a94b 100644 --- a/composer.json +++ b/composer.json @@ -13,8 +13,7 @@ "guzzlehttp/guzzle": "3.8.1" }, "require-dev": { - "phpunit/phpunit": "4.3.*", - "codegyre/robo": "0.3.6" + "phpunit/phpunit": "4.3.*" }, "autoload": { "psr-4": { |