Linux boca.hozzt.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
: 159.253.39.62 | : 3.133.143.61
Cant Read [ /etc/named.conf ]
7.4.33
renovkoron
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
alt /
php55 /
usr /
share /
pear /
test /
DoctrineBridge /
Symfony /
Bridge /
Doctrine /
Tests /
[ HOME SHELL ]
Name
Size
Permission
Action
DataCollector
[ DIR ]
drwxr-xr-x
DataFixtures
[ DIR ]
drwxr-xr-x
DependencyInjection
[ DIR ]
drwxr-xr-x
ExpressionLanguage
[ DIR ]
drwxr-xr-x
Fixtures
[ DIR ]
drwxr-xr-x
Form
[ DIR ]
drwxr-xr-x
HttpFoundation
[ DIR ]
drwxr-xr-x
Logger
[ DIR ]
drwxr-xr-x
Security
[ DIR ]
drwxr-xr-x
Validator
[ DIR ]
drwxr-xr-x
ContainerAwareEventManagerTest...
1.81
KB
-rw-r--r--
DoctrineOrmTestCase.php
765
B
-rw-r--r--
bootstrap.php
385
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ContainerAwareEventManagerTest.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\Bridge\Doctrine\Tests; use Symfony\Bridge\Doctrine\ContainerAwareEventManager; use Symfony\Component\DependencyInjection\Container; class ContainerAwareEventManagerTest extends \PHPUnit_Framework_TestCase { protected function setUp() { $this->container = new Container(); $this->evm = new ContainerAwareEventManager($this->container); } public function testDispatchEvent() { $this->container->set('foobar', $listener1 = new MyListener()); $this->evm->addEventListener('foo', 'foobar'); $this->evm->addEventListener('foo', $listener2 = new MyListener()); $this->evm->dispatchEvent('foo'); $this->assertTrue($listener1->called); $this->assertTrue($listener2->called); } public function testRemoveEventListener() { $this->evm->addEventListener('foo', 'bar'); $this->evm->addEventListener('foo', $listener = new MyListener()); $listeners = array('foo' => array('_service_bar' => 'bar', spl_object_hash($listener) => $listener)); $this->assertSame($listeners, $this->evm->getListeners()); $this->assertSame($listeners['foo'], $this->evm->getListeners('foo')); $this->evm->removeEventListener('foo', $listener); $this->assertSame(array('_service_bar' => 'bar'), $this->evm->getListeners('foo')); $this->evm->removeEventListener('foo', 'bar'); $this->assertSame(array(), $this->evm->getListeners('foo')); } } class MyListener { public $called = false; public function foo() { $this->called = true; } }
Close