object = $objectManager->create( \Magento\Framework\Reflection\MethodsMap::class ); } public function testGetMethodsMap() { CacheCleaner::cleanAll(); $data = $this->object->getMethodsMap(\Magento\Framework\Reflection\MethodsMap::class); $this->assertArrayHasKey('getMethodsMap', $data); $cachedData = $this->object->getMethodsMap(\Magento\Framework\Reflection\MethodsMap::class); $this->assertEquals($data, $cachedData); } public function testGetMethodParams() { CacheCleaner::cleanAll(); $data = $this->object->getMethodParams( \Magento\Framework\Reflection\MethodsMap::class, 'getMethodParams' ); $this->assertCount(2, $data); $cachedData = $this->object->getMethodParams( \Magento\Framework\Reflection\MethodsMap::class, 'getMethodParams' ); $this->assertEquals($data, $cachedData); } }