public function testValidate() { $mockSchema = $this->getMockBuilder(SchemaInterface::class)->getMock(); $property = new Property($mockSchema, 'testProperty', ['required' => true]); $result = $property->validate('foobar'); $this->assertInstanceOf(Ok::class, $result); }