Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.61
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
symfony /
contracts /
Tests /
Service /
Delete
Unzip
Name
Size
Permission
Date
Action
ServiceLocatorTest.php
2.79
KB
-rw-r--r--
2018-11-24 09:00
ServiceSubscriberTraitTest.php
1.57
KB
-rw-r--r--
2018-11-24 09:00
Save
Rename
<?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\Contracts\Tests\Service; use PHPUnit\Framework\TestCase; use Psr\Container\ContainerInterface; use Symfony\Contracts\Service\ServiceLocatorTrait; use Symfony\Contracts\Service\ServiceSubscriberInterface; use Symfony\Contracts\Service\ServiceSubscriberTrait; class ServiceSubscriberTraitTest extends TestCase { public function testMethodsOnParentsAndChildrenAreIgnoredInGetSubscribedServices() { $expected = array(TestService::class.'::aService' => '?Symfony\Contracts\Tests\Service\Service2'); $this->assertEquals($expected, ChildTestService::getSubscribedServices()); } public function testSetContainerIsCalledOnParent() { $container = new class(array()) implements ContainerInterface { use ServiceLocatorTrait; }; $this->assertSame($container, (new TestService())->setContainer($container)); } } class ParentTestService { public function aParentService(): Service1 { } public function setContainer(ContainerInterface $container) { return $container; } } class TestService extends ParentTestService implements ServiceSubscriberInterface { use ServiceSubscriberTrait; public function aService(): Service2 { } } class ChildTestService extends TestService { public function aChildService(): Service3 { } }