PhpOrient\ConnectionTokenTest::testReconnectionRoot PHP Method

testReconnectionRoot() public method

    public function testReconnectionRoot()
    {
        $this->assertEmpty($this->client->getSessionToken());
        $old_token = $GLOBALS['old_db_token'];
        //even if i pass the old token it will be ignored from server
        //and it will create a new one because of root connection
        $res = $this->client->setSessionToken($old_token)->connect('root', 'root');
        $this->assertNotEquals($this->client->getSessionToken(), $old_token);
        $GLOBALS['old_root_token'] = $this->client->getSessionToken();
    }