GrumPHP\Linter\Yaml\YamlLinter::setObjectSupport PHP Method

setObjectSupport() public method

public setObjectSupport ( boolean $objectSupport )
$objectSupport boolean
    public function setObjectSupport($objectSupport)
    {
        $this->objectSupport = $objectSupport;
    }

Usage Example

Example #1
0
 /**
  * @test
  */
 function it_should_handle_exceptions_on_invalid_type()
 {
     $this->linter->setObjectSupport(false);
     $this->linter->setExceptionOnInvalidType(true);
     $fixture = YamlLinter::supportsFlags() ? 'object-support.yml' : 'object-support-old.yml';
     $this->validateFixture($fixture, 1);
 }
All Usage Examples Of GrumPHP\Linter\Yaml\YamlLinter::setObjectSupport