ApiPlatform\Core\Tests\Metadata\Property\PropertyNameCollectionTest::testValueObject PHP Method

testValueObject() public method

public testValueObject ( )
    public function testValueObject()
    {
        $collection = new PropertyNameCollection(['foo', 'bar']);
        $this->assertInstanceOf(\Countable::class, $collection);
        $this->assertInstanceOf(\IteratorAggregate::class, $collection);
        $this->assertCount(2, $collection);
        $this->assertInstanceOf(\ArrayIterator::class, $collection->getIterator());
    }
PropertyNameCollectionTest