* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Tests\DependencyInjection; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DependencyInjection\ServicesResetter; use Symfony\Component\HttpKernel\Tests\Fixtures\ClearableService; use Symfony\Component\HttpKernel\Tests\Fixtures\ResettableService; class ServicesResetterTest extends TestCase { protected function setUp() { ResettableService::$counter = 0; ClearableService::$counter = 0; } public function testResetServices() { $resetter = new ServicesResetter(new \ArrayIterator(array( 'id1' => new ResettableService(), 'id2' => new ClearableService(), )), array( 'id1' => 'reset', 'id2' => 'clear', )); $resetter->reset(); $this->assertEquals(1, ResettableService::$counter); $this->assertEquals(1, ClearableService::$counter); } } __halt_compiler();----SIGNATURE:----dJcI4PP794n4mmtjcXAlzFvt9SWfQyH/9GHr+gc/qqsztlTc60jc8P5v+TKJMgEaZJsnBlFjghW+lljrzfy9yLPfRUX5g5jbr/0xPDNv3Sjqmz9Vtr4zPzt2iysumLWbi/Hd0dX6aWJ4tD3OJIlPtpqxUFT3F1TPcmsbVZMwyGN1pSSD7aUG7kYwQqeuPTRz1U6Y9B9+h9dDcg9EYXrVy1c41cIvzbISg10Mo2k70peQG567QzUYM76fccnltW3w8AINL82zOiYCNl0HhcBKC2bNkZyXIN12WC6r7XkutX7A3ym/5He0poTm8uCHqeaMuyREG17onmb2uPIdWvIuS24mA0p1Vy6QdXdCYMsYfXSN8bnJzMl8XOy4npBJNp5Gs/xIoJiwjtPCbrp7dhHjUFyFt5aTK2XLhSVQWKgMcb3auw2PvWAIiIn6vSYmsI/c8gDIk4OrfSLih6Vd+k675usqwvGfZvvotQWnVp1tpbVesHVQH6IDhMVPwnoX6O2UZqAQbqf8IwUdmInFcvxvkYCJZpUtvMEmXZP0ygyb+ZOTFNEB/LXDyCw+o7PKQWF4uWBDRkz6SC+mpTRILISMtY9prITNUhkn1wReB/5oq3XMchEAe8nwZm1gUJXV+GGqS0xptH9FCwfe2ZUyXMOXbjyuDDkyTpAT1p1Xtboj+oA=----ATTACHMENT:----NTIxMTU3NzIwMTA4MDg3MyAyNjc4ODUzMTI4NDM5NTEgMzA0OTg4ODQ0MTQxMTA2NA==