public function testExtractWithException()
 {
     $this->setExpectedException('RuntimeException', 'Foo throws exception');
     $this->fooAdmin->expects($this->any())->method('getShow')->will($this->returnCallback(function () {
         throw new \RuntimeException('Foo throws exception');
     }));
     $catalogue = $this->adminExtractor->extract();
 }
 public function testExtractCallsBreadcrumbs()
 {
     $this->breadcrumbsBuilder->expects($this->exactly(2 * 6))->method('getBreadcrumbs');
     $this->adminExtractor->extract();
 }