You are here

public function YamlTest::testNegativeIndentationThrowsException in Loft Data Grids 7.2

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

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

File

vendor/symfony/yaml/Tests/YamlTest.php, line 52

Class

YamlTest

Namespace

Symfony\Component\Yaml\Tests

Code

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