| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | protected function setUp() : void |
||
| 19 | { |
||
| 20 | if( !class_exists( 'Symfony\Component\Mailer\MailerInterface' ) ) { |
||
| 21 | $this->markTestSkipped( 'Class Symfony\Component\Mailer\MailerInterface not found' ); |
||
| 22 | } |
||
| 23 | |||
| 24 | $mock = $this->getMockBuilder( 'Symfony\Component\Mailer\MailerInterface' ) |
||
| 25 | ->disableOriginalConstructor() |
||
| 26 | ->getMock(); |
||
| 27 | |||
| 28 | $this->mailer = new \Aimeos\Base\Mail\Symfony( function() use ( $mock ) { return $mock; } ); |
||
| 29 | $this->mock = $mock; |
||
| 30 | } |
||
| 48 |