public function testPropertiesAccess() { $cls = new \vc\Data\Type\Cls(123); $this->assertSame(array(), $cls->getProperties()); $prop1 = new \vc\Data\Property(1); $this->assertSame($cls, $cls->addProperty($prop1)); $this->assertSame(array($prop1), $cls->getProperties()); $prop2 = new \vc\Data\Property(1); $this->assertSame($cls, $cls->addProperty($prop2)); $this->assertSame(array($prop1, $prop2), $cls->getProperties()); }