diff --git a/tests/Integration/ReactMqttClientTest.php b/tests/Integration/ReactMqttClientTest.php
index <HASH>..<HASH> 100644
--- a/tests/Integration/ReactMqttClientTest.php
+++ b/tests/Integration/ReactMqttClientTest.php
@@ -335,6 +335,29 @@ class ReactMqttClientTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
+     * Test that client's is-connected state is updated correctly
+     *
+     * @depends test_connect_success
+     */
+    public function test_is_connected_when_connect_event_emitted()
+    {
+        $client = $this->buildClient();
+
+        $client->on('connect', function(Connection $connection) use($client){
+            $this->assertTrue($client->isConnected(), 'Client is should be connected');
+            $this->stopLoop();
+        });
+
+        $client->connect(self::HOSTNAME, self::PORT, null, 1)
+        ->then(function () use ($client) {
+            $this->assertTrue($client->isConnected());
+            $this->stopLoop();
+        });
+
+        $this->startLoop();
+    }
+
+    /**
      * Tests that messages can be send and received successfully.
      *
      * @depends test_connect_success
Add is connected on 'connect' event test

Proves that a client is connected once the "connect" event
is dispatched.