Tests/Transport/Rpc/RpcClientTest.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 96-109 (lines=14) @@ | 
                                                            
                                    | 93 |  |     /** | 
                                                            
                                    | 94 |  |      * @return CmobiAMQPConnection | 
                                                            
                                    | 95 |  |      */ | 
                                                            
                                    | 96 |  |     protected function getConnectionMock() | 
                                                            
                                    | 97 |  |     { | 
                                                            
                                    | 98 |  |         $connectionMock = $this->getMockBuilder(CmobiAMQPConnection::class) | 
                                                            
                                    | 99 |  |             ->disableOriginalConstructor() | 
                                                            
                                    | 100 |  |             ->getMock(); | 
                                                            
                                    | 101 |  |         $connectionMock->method('isConnected') | 
                                                            
                                    | 102 |  |             ->willReturn(true); | 
                                                            
                                    | 103 |  |         $connectionMock->method('reconnect') | 
                                                            
                                    | 104 |  |             ->willReturn(true); | 
                                                            
                                    | 105 |  |         $connectionMock->method('channel') | 
                                                            
                                    | 106 |  |             ->willReturn($this->getChannelMock()); | 
                                                            
                                    | 107 |  |  | 
                                                            
                                    | 108 |  |         return $connectionMock; | 
                                                            
                                    | 109 |  |     } | 
                                                            
                                    | 110 |  |  | 
                                                            
                                    | 111 |  |     /** | 
                                                            
                                    | 112 |  |      * @return CmobiAMQPChannel | 
                                                                        
                 
                                                            
                    
Tests/Transport/Worker/TaskTest.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 59-72 (lines=14) @@ | 
                                                            
                                    | 56 |  |     /** | 
                                                            
                                    | 57 |  |      * @return CmobiAMQPConnection | 
                                                            
                                    | 58 |  |      */ | 
                                                            
                                    | 59 |  |     protected function getConnectionMock() | 
                                                            
                                    | 60 |  |     { | 
                                                            
                                    | 61 |  |         $connectionMock = $this->getMockBuilder(CmobiAMQPConnection::class) | 
                                                            
                                    | 62 |  |             ->disableOriginalConstructor() | 
                                                            
                                    | 63 |  |             ->getMock(); | 
                                                            
                                    | 64 |  |         $connectionMock->method('isConnected') | 
                                                            
                                    | 65 |  |             ->willReturn(true); | 
                                                            
                                    | 66 |  |         $connectionMock->method('reconnect') | 
                                                            
                                    | 67 |  |             ->willReturn(true); | 
                                                            
                                    | 68 |  |         $connectionMock->method('channel') | 
                                                            
                                    | 69 |  |             ->willReturn($this->getChannelMock()); | 
                                                            
                                    | 70 |  |  | 
                                                            
                                    | 71 |  |         return $connectionMock; | 
                                                            
                                    | 72 |  |     } | 
                                                            
                                    | 73 |  |  | 
                                                            
                                    | 74 |  |     /** | 
                                                            
                                    | 75 |  |      * @return CmobiAMQPChannel | 
                                                                        
                 
                                                            
                    
Tests/Transport/Subscriber/PublisherTest.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 106-119 (lines=14) @@ | 
                                                            
                                    | 103 |  |     /** | 
                                                            
                                    | 104 |  |      * @return CmobiAMQPConnection | 
                                                            
                                    | 105 |  |      */ | 
                                                            
                                    | 106 |  |     protected function getConnectionMock() | 
                                                            
                                    | 107 |  |     { | 
                                                            
                                    | 108 |  |         $connectionMock = $this->getMockBuilder(CmobiAMQPConnection::class) | 
                                                            
                                    | 109 |  |             ->disableOriginalConstructor() | 
                                                            
                                    | 110 |  |             ->getMock(); | 
                                                            
                                    | 111 |  |         $connectionMock->method('isConnected') | 
                                                            
                                    | 112 |  |             ->willReturn(true); | 
                                                            
                                    | 113 |  |         $connectionMock->method('reconnect') | 
                                                            
                                    | 114 |  |             ->willReturn(true); | 
                                                            
                                    | 115 |  |         $connectionMock->method('channel') | 
                                                            
                                    | 116 |  |             ->willReturn($this->getChannelMock()); | 
                                                            
                                    | 117 |  |  | 
                                                            
                                    | 118 |  |         return $connectionMock; | 
                                                            
                                    | 119 |  |     } | 
                                                            
                                    | 120 |  |  | 
                                                            
                                    | 121 |  |     /** | 
                                                            
                                    | 122 |  |      * @return CmobiAMQPChannel |