public function testPropertiesManipulation() { $sUT = new Property(); $sUT->addProperty('test', new Property()); $items = $sUT->getProperties(); $this->assertSame(1, count($items)); $sUT->addProperty('test', new Property()); $this->assertSame(1, count($sUT->getProperties())); $this->setExpectedException('JSONSchema\\Structure\\Exceptions\\OverwriteKeyException'); $sUT->addProperty('test', new Property(), false, false); }