Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Extensions / PhptTestCaseTest.php
1 <?php
2 /*
3  * This file is part of PHPUnit.
4  *
5  * (c) Sebastian Bergmann <sebastian@phpunit.de>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 class Extensions_PhptTestCaseTest extends \PHPUnit_Framework_TestCase
12 {
13     public function testParseIniSection()
14     {
15         $phptTestCase = new PhpTestCaseProxy(__FILE__);
16         $settings     = $phptTestCase->parseIniSection("foo=1\nbar = 2\rbaz = 3\r\nempty=\nignore");
17
18         $expected = array(
19             'foo=1',
20             'bar = 2',
21             'baz = 3',
22             'empty=',
23             'ignore',
24         );
25
26         $this->assertEquals($expected, $settings);
27     }
28 }
29
30 class PhpTestCaseProxy extends PHPUnit_Extensions_PhptTestCase
31 {
32     public function parseIniSection($content)
33     {
34         return parent::parseIniSection($content);
35     }
36 }