summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornornholdj <nornholdj@gmail.com>2014-10-17 16:52:06 -0400
committernornholdj <nornholdj@gmail.com>2014-10-17 16:52:06 -0400
commit7a503d6b918832568ff751368aae7be797d47aa1 (patch)
treeb27e9f971c84b7b32a671b7eb0717d28b0fe4fe4 /test
parent5d346d241fc0d0b565d7aa6ce0179a5da4c73dc0 (diff)
downloadphp-sparkpost-7a503d6b918832568ff751368aae7be797d47aa1.zip
php-sparkpost-7a503d6b918832568ff751368aae7be797d47aa1.tar.gz
php-sparkpost-7a503d6b918832568ff751368aae7be797d47aa1.tar.bz2
MA-946 #time 10h 30m Setup Composer and file structure. Setup Config and Transmission objects. Setup Testing suite and dependencies.
Diffstat (limited to 'test')
-rw-r--r--test/transmissionTest.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/transmissionTest.php b/test/transmissionTest.php
new file mode 100644
index 0000000..bae4e2e
--- /dev/null
+++ b/test/transmissionTest.php
@@ -0,0 +1,32 @@
+<?php
+require_once 'vendor/autoload.php';
+
+use MessageSystems\Transmission;
+use MessageSystems\Configuration;
+
+class TransmissionTest extends PHPUnit_Framework_TestCase {
+
+ private $transmission = null;
+
+ private static function getMethod($name) {
+ $class = new ReflectionClass('\MessageSystems\Transmission');
+ $method = $class->getMethod($name);
+ $method->setAccessible(true);
+ return $method;
+ }
+
+ /**
+ * (non-PHPdoc)
+ * @before
+ * @see PHPUnit_Framework_TestCase::setUp()
+ */
+ public function setUp() {
+ Configuration::setConfig(['key'=>'blah']);
+ $this->transmission = new Transmission();
+ }
+
+ public function testFetch() {
+ $this->assertEquals('', self::getMethod('fetch')->invokeArgs($this->transmission, [null]));
+ }
+}
+?> \ No newline at end of file