Cassandra\Type\CollectionTest::testDefinesCollectionType PHP Method

testDefinesCollectionType() public method

    public function testDefinesCollectionType()
    {
        $type = Type::collection(Type::varchar());
        $this->assertEquals("list", $type->name());
        $this->assertEquals("list<varchar>", (string) $type);
        $this->assertEquals(Type::varchar(), $type->valueType());
    }