You are here

public function Extensions_PhptTestCaseTest::testParseIniSection in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Extensions/PhptTestCaseTest.php \Extensions_PhptTestCaseTest::testParseIniSection()

File

vendor/phpunit/phpunit/tests/Extensions/PhptTestCaseTest.php, line 13

Class

Extensions_PhptTestCaseTest

Code

public function testParseIniSection() {
  $phptTestCase = new PhpTestCaseProxy(__FILE__);
  $settings = $phptTestCase
    ->parseIniSection("foo=1\nbar = 2\rbaz = 3\r\nempty=\nignore");
  $expected = array(
    'foo=1',
    'bar = 2',
    'baz = 3',
    'empty=',
    'ignore',
  );
  $this
    ->assertEquals($expected, $settings);
}