/** * @covers ::getEventDispatcher * @covers ::setEventDispatcher */ public function testGetEventDispatcher() { $this->assertInstanceOf('\\Symfony\\Component\\EventDispatcher\\EventDispatcherInterface', $this->client->getEventDispatcher()); $eventDispatcher = $this->getMock('\\Symfony\\Component\\EventDispatcher\\EventDispatcherInterface'); $this->client->setEventDispatcher($eventDispatcher); $this->assertSame($eventDispatcher, $this->client->getEventDispatcher()); }