summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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