PhptTestCaseTest.php in Zircon Profile 8
File
vendor/phpunit/phpunit/tests/Extensions/PhptTestCaseTest.php
View source
<?php
class Extensions_PhptTestCaseTest extends \PHPUnit_Framework_TestCase {
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);
}
}
class PhpTestCaseProxy extends PHPUnit_Extensions_PhptTestCase {
public function parseIniSection($content) {
return parent::parseIniSection($content);
}
}