| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 37 | public function testUsername()  | 
            ||
| 38 |     { | 
            ||
| 39 |         $customerMock = $this->getMockBuilder('\Graviton\SecurityBundle\Entities\SecurityUser') | 
            ||
| 40 | ->disableOriginalConstructor()  | 
            ||
| 41 |             ->setMethods(array('getUsername', 'getId')) | 
            ||
| 42 | ->getMock();  | 
            ||
| 43 | $customerMock  | 
            ||
| 44 | ->expects($this->never())  | 
            ||
| 45 |             ->method('getId') | 
            ||
| 46 | ->will($this->returnValue(0));  | 
            ||
| 47 | $customerMock  | 
            ||
| 48 | ->expects($this->never())  | 
            ||
| 49 |             ->method('getUsername') | 
            ||
| 50 |             ->will($this->returnValue('anonymous')); | 
            ||
| 51 | |||
| 52 | }  | 
            ||
| 53 | }  | 
            ||
| 54 |