/** * Test what happens if we try to connect with a faulty token * @expectedException CException */ public function testConnectFaultyToken() { //Disconnect all services self::$iio->disconnect(); //Try to connect with faulty project self::$iio->token = "faulty_token"; self::$iio->connect(); self::$iio->mqGetQueues(); }