/** * @covers ::addContext */ public function testAddContext() { $context = new Context(new ContextDefinition('bar')); $this->page->addContext('foo', $context); $contexts = $this->page->getContexts(); $this->assertSame(['foo' => $context], $contexts); }