Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Util / GlobalStateTest.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 /**
12  */
13 class Util_GlobalStateTest extends PHPUnit_Framework_TestCase
14 {
15     /**
16      * @covers PHPUnit_Util_GlobalState::processIncludedFilesAsString
17      */
18     public function testIncludedFilesAsStringSkipsVfsProtocols()
19     {
20         $dir   = __DIR__;
21         $files = array(
22             'phpunit', // The 0 index is not used
23             $dir . '/ConfigurationTest.php',
24             $dir . '/GlobalStateTest.php',
25             'vfs://' . $dir . '/RegexTest.php',
26             'phpvfs53e46260465c7://' . $dir . '/TestTest.php',
27             'file://' . $dir . '/XMLTest.php'
28         );
29
30         $this->assertEquals(
31             "require_once '" . $dir . "/ConfigurationTest.php';\n" .
32             "require_once '" . $dir . "/GlobalStateTest.php';\n" .
33             "require_once 'file://" . $dir . "/XMLTest.php';\n", PHPUnit_Util_GlobalState::processIncludedFilesAsString($files));
34     }
35 }