26 $this->_object = new \Magento\TestFramework\Bootstrap\DocBlock(
__DIR__);
27 $this->_application = $this->createMock(\
Magento\TestFramework\Application::class);
32 $this->_object =
null;
33 $this->_application =
null;
46 $this->fail(
"Inability to instantiate the event listener '{$listenerClass}' is expected.");
48 $this->assertEquals($expectedExceptionMsg, $e->getMessage());
55 \
Magento\TestFramework\Event\PhpUnit::class,
56 'Instance of the event manager is required.' 59 \
Magento\TestFramework\Event\Magento::class,
60 'Instance of the "Magento\TestFramework\EventManager" is expected.' 62 $this->_object->registerAnnotations($this->_application);
63 new \Magento\TestFramework\Event\PhpUnit();
64 new \Magento\TestFramework\Event\Magento();
defined('TESTS_BP')||define('TESTS_BP' __DIR__
_expectNoListenerCreation($listenerClass, $expectedExceptionMsg)
testRegisterAnnotations()