You are here

public function YamlTest::testZeroIndentationThrowsException in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/symfony/yaml/Tests/YamlTest.php \Symfony\Component\Yaml\Tests\YamlTest::testZeroIndentationThrowsException()

@expectedException \InvalidArgumentException @expectedExceptionMessage The indentation must be greater than zero

File

vendor/symfony/yaml/Symfony/Component/Yaml/Tests/YamlTest.php, line 36

Class

YamlTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testZeroIndentationThrowsException() {
  Yaml::dump(array(
    'lorem' => 'ipsum',
    'dolor' => 'sit',
  ), 2, 0);
}