Exemplo n.º 1
0
 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);
 }