diff options
-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": { |