You are here

protected function PHPUnit_Extensions_PhptTestCase::parseIniSection in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Extensions/PhptTestCase.php \PHPUnit_Extensions_PhptTestCase::parseIniSection()

Parse --INI-- section key value pairs and return as array.

Parameters

string:

Return value

array

2 calls to PHPUnit_Extensions_PhptTestCase::parseIniSection()
PhpTestCaseProxy::parseIniSection in vendor/phpunit/phpunit/tests/Extensions/PhptTestCaseTest.php
Parse --INI-- section key value pairs and return as array.
PHPUnit_Extensions_PhptTestCase::run in vendor/phpunit/phpunit/src/Extensions/PhptTestCase.php
Runs a test and collects its result in a TestResult instance.
1 method overrides PHPUnit_Extensions_PhptTestCase::parseIniSection()
PhpTestCaseProxy::parseIniSection in vendor/phpunit/phpunit/tests/Extensions/PhptTestCaseTest.php
Parse --INI-- section key value pairs and return as array.

File

vendor/phpunit/phpunit/src/Extensions/PhptTestCase.php, line 232

Class

PHPUnit_Extensions_PhptTestCase
Runner for PHPT test cases.

Code

protected function parseIniSection($content) {
  return preg_split('/\\n|\\r/', $content, -1, PREG_SPLIT_NO_EMPTY);
}