Jackalope\Transport\DoctrineDBAL\ClientTest::testUuid PHP Method

testUuid() public method

public testUuid ( )
    public function testUuid()
    {
        $class = new \ReflectionClass('Jackalope\\Transport\\DoctrineDBAL\\Client');
        $method = $class->getMethod('generateUuid');
        $method->setAccessible(true);
        $this->assertInternalType('string', $method->invoke($this->transport));
        $this->transport->setUuidGenerator(function () {
            return 'like-a-uuid';
        });
        $this->assertEquals('like-a-uuid', $method->invoke($this->transport));
    }