* * 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:----ORDoqaduDnlQ/Ts+L3zhanHoJTR72AEGmMhHlVwSHhUSjkaCHG+H7l+NagRc9Bf3aEzT2pRuCXwvCKKcsa8hfilVgelFTy2gyxWRDVbXR+GvK3mz+YfrKNafEtshpKeV3A09xbocTdB4YPMhFjiKPMfet9gxcBf0XeUPVjcLVpt7XMLgUDpIftrDSr70szCsG7C5w9iLtQMeT7+QlnrAtmF3NzitQm02ZYLmChssZ4HJmsP9DY2KpoP9KIXM1zMeUizrQJJfiGyN1B08GEMb29pB8FQ+SnitIXP1ErItxdnJxMfPOYO2YECt5f5RzVsRtIS2kUNyh2uIvbQBWwzkw1k9Rti/5E1t1TfZEpD1Mp1zRU1VNTix9Trp4Dtc+e3oVrNyWD0zs6Fso2gGuUVO4baxVkFTJWpdqnCt24mORAHQmxhzz/8wy1xpfJv9pkhY3Ba/p3dWBsFF/I4bYG71BRtbouib78Hsb2ODGK1ZcL9WKdLN2PmmbtV6O8TJCw68EVBUHCgfx2BnDzSG/F7tRdBTugH8YFFVk4ROZvtBkM3CFt1naQxCNdrxUsZuIVzF2/wgPTA5Shb6vPd7RHxzdBLxkflaIk95dvbuCrXztV+G1OoDwcGuQd+4Q5pRjyEPqF4saRH+6DlnFDYyXRDEpEvXYSm/L6WFqNkD1skW0Fk=----ATTACHMENT:----MTA4OTI4ODU2Mzg5MjAxNyAxMzAxMTAwNDk5MjExNDY0IDM0NDA5MTY1NTUwMzc1Njk=