PHP 8.2.30
Preview: ReferenceTest.php Size: 937 B
/opt/alt/php53/usr/share/pear/test/DependencyInjection/Symfony/Component/DependencyInjection/Tests/ReferenceTest.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\DependencyInjection\Tests;

use Symfony\Component\DependencyInjection\Reference;

class ReferenceTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @covers Symfony\Component\DependencyInjection\Reference::__construct
     */
    public function testConstructor()
    {
        $ref = new Reference('foo');
        $this->assertEquals('foo', (string) $ref, '__construct() sets the id of the reference, which is used for the __toString() method');
    }

    public function testCaseInsensitive()
    {
        $ref = new Reference('FooBar');
        $this->assertEquals('foobar', (string) $ref, 'the id is lowercased as the container is case insensitive');
    }
}

Directory Contents

Dirs: 7 × Files: 7

Name Size Perms Modified Actions
Compiler DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Dumper DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Extension DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Fixtures DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
LazyProxy DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Loader DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
34.90 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
21.94 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
3.40 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
3.45 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
13.39 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
727 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
937 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).