Neos\Flow\Tests\Unit\Reflection\ClassSchemaTest::getPropertiesReturnsAddedProperties PHP Method

getPropertiesReturnsAddedProperties() public method

    public function getPropertiesReturnsAddedProperties()
    {
        $expectedProperties = ['a' => ['type' => 'string', 'elementType' => null, 'lazy' => false, 'transient' => false], 'b' => ['type' => 'Neos\\Flow\\SomeObject', 'elementType' => null, 'lazy' => true, 'transient' => false], 'c' => ['type' => 'Neos\\Flow\\SomeOtherObject', 'elementType' => null, 'lazy' => true, 'transient' => true]];
        $classSchema = new ClassSchema('SomeClass');
        $classSchema->addProperty('a', 'string');
        $classSchema->addProperty('b', 'Neos\\Flow\\SomeObject', true);
        $classSchema->addProperty('c', 'Neos\\Flow\\SomeOtherObject', true, true);
        $this->assertSame($expectedProperties, $classSchema->getProperties());
    }