PhpOrient\SQLCommandsTest::testOne PHP Method

testOne() public method

public testOne ( )
    public function testOne()
    {
        $result = $this->client->execute('command', ['command' => Constants::QUERY_CMD, 'query' => 'create class my_class extends V']);
        $this->assertNotEmpty($result);
        if ($this->client->getTransport()->getProtocolVersion() >= 35) {
            $this->assertInstanceOf('PhpOrient\\Protocols\\Binary\\Data\\Record', $result);
        } else {
            $this->assertInternalType('string', $result);
        }
    }