/**
  * @covers ::__construct
  * @covers ::addItem
  * @covers ::getItems
  */
 public function test_getItems_nonEmptyBreadcrumb()
 {
     $item1 = \Mockery::mock(BreadcrumbItem::class);
     $this->itemFactory->shouldReceive('create')->with('aLabel', 'aRoute', null)->andReturn($item1);
     $item2 = \Mockery::mock(BreadcrumbItem::class);
     $this->itemFactory->shouldReceive('create')->with('anotherLabel', 'anotherRoute', ['a' => 'b'])->andReturn($item2);
     $this->builder->addItem('aLabel', 'aRoute');
     $this->builder->addItem('anotherLabel', 'anotherRoute', ['a' => 'b']);
     $this->assertEquals([$item1, $item2], $this->builder->getItems());
 }