| @@ 31-44 (lines=14) @@ | ||
| 28 | */ |
|
| 29 | protected $transactionLogger; |
|
| 30 | ||
| 31 | public function setUp() |
|
| 32 | { |
|
| 33 | $this->transactionLogger = $this->getMockBuilder(TransactionLogger::class) |
|
| 34 | ->disableOriginalConstructor() |
|
| 35 | ->getMock() |
|
| 36 | ; |
|
| 37 | ||
| 38 | $this->listener = new ControllerListener($this->transactionLogger, new AnnotationReader()); |
|
| 39 | ||
| 40 | $this->request = new Request(); |
|
| 41 | ||
| 42 | // trigger the autoloading of the @LogHttpTransaction annotation |
|
| 43 | class_exists('Loevgaard\DandomainAltapayBundle\Annotation\LogHttpTransaction'); |
|
| 44 | } |
|
| 45 | ||
| 46 | public function tearDown() |
|
| 47 | { |
|
| @@ 35-45 (lines=11) @@ | ||
| 32 | */ |
|
| 33 | protected $transactionLogger; |
|
| 34 | ||
| 35 | public function setUp() |
|
| 36 | { |
|
| 37 | $this->transactionLogger = $this->getMockBuilder(TransactionLogger::class) |
|
| 38 | ->disableOriginalConstructor() |
|
| 39 | ->getMock() |
|
| 40 | ; |
|
| 41 | ||
| 42 | $this->listener = new ResponseListener($this->transactionLogger); |
|
| 43 | $this->request = new Request(); |
|
| 44 | $this->response = new Response(); |
|
| 45 | } |
|
| 46 | ||
| 47 | public function tearDown() |
|
| 48 | { |
|