function it_should_create_resource_with_validator() { $text = new TextType('resources.resource_text'); $text->addConstraint(new NotBlank()); $this->beConstructedWith(__DIR__ . '/../../../../Fixtures/simple_valid_map_with_validators.yml', $this->resources); $this->getResource('resources.resource_text')->shouldBeLike($text); }