PhpOrient\ConnectionTokenTest::testReconnectionFailRoot PHP Метод

testReconnectionFailRoot() публичный Метод

    public function testReconnectionFailRoot()
    {
        $this->assertEmpty($this->client->getSessionToken());
        $old_token = $GLOBALS['old_db_token'];
        //this because the connection credentials
        // are not correct for Orient root access
        $this->setExpectedException('\\PhpOrient\\Exceptions\\PhpOrientException');
        $res = $this->client->setSessionToken($old_token)->dbExists("GratefulDeadConcerts");
    }