| 
                                
                                    @@ 95-112 (lines=18) @@
                                 | 
                            
                                                            
                                    | 92 | 
                                     | 
                                            $this->assertEquals(42, $this->testedInstance->progressBar->getMaxSteps());  | 
                                
                                                            
                                    | 93 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 94 | 
                                     | 
                                     | 
                                
                                                            
                                    | 95 | 
                                     | 
                                        public function testOnIndexedDocumentAdvanceProgress()  | 
                                
                                                            
                                    | 96 | 
                                     | 
                                        { | 
                                
                                                            
                                    | 97 | 
                                     | 
                                            $provider = $this->getMock(DataProviderInterface::class);  | 
                                
                                                            
                                    | 98 | 
                                     | 
                                            $entry = new RegistryEntry($provider, 'my_index', 'my_type');  | 
                                
                                                            
                                    | 99 | 
                                     | 
                                            $event = new HasIndexedDocument($entry);  | 
                                
                                                            
                                    | 100 | 
                                     | 
                                     | 
                                
                                                            
                                    | 101 | 
                                     | 
                                            $this->testedInstance->progressBar = $this  | 
                                
                                                            
                                    | 102 | 
                                     | 
                                                ->getMock(ProgressBar::class, [], [$this->output])  | 
                                
                                                            
                                    | 103 | 
                                     | 
                                            ;  | 
                                
                                                            
                                    | 104 | 
                                     | 
                                     | 
                                
                                                            
                                    | 105 | 
                                     | 
                                            $this->testedInstance  | 
                                
                                                            
                                    | 106 | 
                                     | 
                                                ->progressBar  | 
                                
                                                            
                                    | 107 | 
                                     | 
                                                ->expects($this->once())  | 
                                
                                                            
                                    | 108 | 
                                     | 
                                                ->method('advance') | 
                                
                                                            
                                    | 109 | 
                                     | 
                                            ;  | 
                                
                                                            
                                    | 110 | 
                                     | 
                                     | 
                                
                                                            
                                    | 111 | 
                                     | 
                                            $this->testedInstance->onIndexedDocument($event);  | 
                                
                                                            
                                    | 112 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 113 | 
                                     | 
                                     | 
                                
                                                            
                                    | 114 | 
                                     | 
                                        public function testOnFinishedProvidingFinishProgress()  | 
                                
                                                            
                                    | 115 | 
                                     | 
                                        { | 
                                
                                                                                
                                 | 
                                
                                    @@ 114-133 (lines=20) @@
                                 | 
                            
                                                            
                                    | 111 | 
                                     | 
                                            $this->testedInstance->onIndexedDocument($event);  | 
                                
                                                            
                                    | 112 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 113 | 
                                     | 
                                     | 
                                
                                                            
                                    | 114 | 
                                     | 
                                        public function testOnFinishedProvidingFinishProgress()  | 
                                
                                                            
                                    | 115 | 
                                     | 
                                        { | 
                                
                                                            
                                    | 116 | 
                                     | 
                                            $provider = $this->getMock(DataProviderInterface::class);  | 
                                
                                                            
                                    | 117 | 
                                     | 
                                            $entry = new RegistryEntry($provider, 'my_index', 'my_type');  | 
                                
                                                            
                                    | 118 | 
                                     | 
                                            $event = new HasFinishedProviding($entry);  | 
                                
                                                            
                                    | 119 | 
                                     | 
                                     | 
                                
                                                            
                                    | 120 | 
                                     | 
                                            $this->testedInstance->progressBar = $this  | 
                                
                                                            
                                    | 121 | 
                                     | 
                                                ->getMock(ProgressBar::class, [], [$this->output])  | 
                                
                                                            
                                    | 122 | 
                                     | 
                                            ;  | 
                                
                                                            
                                    | 123 | 
                                     | 
                                     | 
                                
                                                            
                                    | 124 | 
                                     | 
                                            $this->testedInstance  | 
                                
                                                            
                                    | 125 | 
                                     | 
                                                ->progressBar  | 
                                
                                                            
                                    | 126 | 
                                     | 
                                                ->expects($this->once())  | 
                                
                                                            
                                    | 127 | 
                                     | 
                                                ->method('finish') | 
                                
                                                            
                                    | 128 | 
                                     | 
                                            ;  | 
                                
                                                            
                                    | 129 | 
                                     | 
                                     | 
                                
                                                            
                                    | 130 | 
                                     | 
                                            $this->testedInstance->onFinishedProviding($event);  | 
                                
                                                            
                                    | 131 | 
                                     | 
                                     | 
                                
                                                            
                                    | 132 | 
                                     | 
                                            $this->assertEmpty($this->testedInstance->progressBar);  | 
                                
                                                            
                                    | 133 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 134 | 
                                     | 
                                    }  | 
                                
                                                            
                                    | 135 | 
                                     | 
                                     |