Example #1
0
 public function testGetters()
 {
     $mockSchema = $this->getMockBuilder(SchemaInterface::class)->getMock();
     $property = new Property($mockSchema, 'testProperty', ['required' => true]);
     $this->assertEquals('testProperty', $property->getName());
     $this->assertNull($property->getParent());
     $this->assertFalse($property->hasParent());
     $this->assertEquals($mockSchema, $property->getSchema());
 }