diff --git a/tests/Feature/OnOffCommandTest.php b/tests/Feature/OnOffCommandTest.php new file mode 100644 index 0000000..54b7f86 --- /dev/null +++ b/tests/Feature/OnOffCommandTest.php @@ -0,0 +1,36 @@ + ['debug' => true], + 'connection' => [ + 'secure' => true, + 'reconnect' => true, + 'rejoin' => true, + ], + 'channels' => ['ghostzero'] + ])); + + $called = false; + + $client->connect(function () use (&$called) { + $called = true; // mark this test as successful + }); + + sleep(3); + + self::assertTrue($called, ''); + } +}