Page MenuHomeDevCentral

D229.diff
No OneTemporary

D229.diff

diff --git a/tests/Providers/TestCase.php b/tests/Providers/TestCase.php
new file mode 100644
--- /dev/null
+++ b/tests/Providers/TestCase.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Providers;
+
+use Nasqueron\Notifications\Tests\TestCase as BaseTestCase;
+
+class TestCase extends BaseTestCase {
+
+ /**
+ * Asserts a service in the application container is from the expected type.
+ *
+ * @param $expectedType The type to check
+ * @param $serviceName The service name to use as application container key
+ */
+ public function assertServiceInstanceOf ($expectedType, $serviceName) {
+ $service = $this->app->make($serviceName);
+ $this->assertInstanceOf($expectedType, $service);
+ }
+
+}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 05:55 (12 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307590
Default Alt Text
D229.diff (764 B)

Event Timeline