@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Loevgaard\DandomainAltapayBundle\Controller; |
4 | 4 | |
5 | -use Loevgaard\Dandomain\Pay\Handler; |
|
6 | -use Loevgaard\Dandomain\Pay\PaymentRequest; |
|
7 | 5 | use Loevgaard\DandomainAltapayBundle\Entity\TerminalInterface; |
8 | 6 | use Loevgaard\DandomainAltapayBundle\Form\TestType; |
7 | +use Loevgaard\Dandomain\Pay\Handler; |
|
8 | +use Loevgaard\Dandomain\Pay\PaymentRequest; |
|
9 | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
10 | 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
11 | 11 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Loevgaard\DandomainAltapayBundle\Manager; |
4 | 4 | |
5 | -use Loevgaard\Dandomain\Pay\PaymentRequest; |
|
6 | 5 | use Loevgaard\DandomainAltapayBundle\Entity\Payment; |
6 | +use Loevgaard\Dandomain\Pay\PaymentRequest; |
|
7 | 7 | use Loevgaard\DoctrineManager\Manager; |
8 | 8 | |
9 | 9 | class PaymentManager extends Manager |
@@ -2,7 +2,6 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Loevgaard\DandomainAltapayBundle\Controller; |
4 | 4 | |
5 | -use Loevgaard\Dandomain\Pay\Handler; |
|
6 | 5 | use Loevgaard\DandomainAltapayBundle\Annotation\LogHttpTransaction; |
7 | 6 | use Loevgaard\DandomainAltapayBundle\Entity\Payment; |
8 | 7 | use Loevgaard\DandomainAltapayBundle\Exception\AltapayPaymentRequestException; |
@@ -13,6 +12,7 @@ discard block |
||
13 | 12 | use Loevgaard\DandomainAltapayBundle\PayloadGenerator\PaymentRequestPayloadGenerator; |
14 | 13 | use Loevgaard\DandomainAltapayBundle\PsrHttpMessage\DiactorosTrait; |
15 | 14 | use Loevgaard\DandomainAltapayBundle\Translation\TranslatorTrait; |
15 | +use Loevgaard\Dandomain\Pay\Handler; |
|
16 | 16 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
17 | 17 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
18 | 18 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
@@ -180,7 +180,7 @@ |
||
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
183 | - * @return Payment|\PHPUnit_Framework_MockObject_MockObject |
|
183 | + * @return Payment |
|
184 | 184 | */ |
185 | 185 | private function getPayment() |
186 | 186 | { |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Loevgaard\DandomainAltapayBundle\Tests\EventListener; |
4 | 4 | |
5 | +use Doctrine\Common\Annotations\AnnotationReader; |
|
5 | 6 | use Loevgaard\DandomainAltapayBundle\EventListener\ControllerListener; |
6 | 7 | use Loevgaard\DandomainAltapayBundle\Http\TransactionLogger; |
7 | 8 | use Loevgaard\DandomainAltapayBundle\Tests\EventListener\Fixture\ControllerWithAnnotation; |
8 | 9 | use PHPUnit\Framework\TestCase; |
9 | -use Doctrine\Common\Annotations\AnnotationReader; |
|
10 | 10 | use Symfony\Component\HttpFoundation\Request; |
11 | 11 | use Symfony\Component\HttpKernel\Event\FilterControllerEvent; |
12 | 12 | use Symfony\Component\HttpKernel\HttpKernelInterface; |
@@ -2,15 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Loevgaard\DandomainAltapayBundle\Tests\EventListener; |
4 | 4 | |
5 | -use Loevgaard\DandomainAltapayBundle\EventListener\ControllerListener; |
|
6 | 5 | use Loevgaard\DandomainAltapayBundle\EventListener\ResponseListener; |
7 | 6 | use Loevgaard\DandomainAltapayBundle\Http\TransactionLogger; |
8 | -use Loevgaard\DandomainAltapayBundle\Tests\EventListener\Fixture\ControllerWithAnnotation; |
|
9 | 7 | use PHPUnit\Framework\TestCase; |
10 | -use Doctrine\Common\Annotations\AnnotationReader; |
|
11 | 8 | use Symfony\Component\HttpFoundation\Request; |
12 | 9 | use Symfony\Component\HttpFoundation\Response; |
13 | -use Symfony\Component\HttpKernel\Event\FilterControllerEvent; |
|
14 | 10 | use Symfony\Component\HttpKernel\Event\FilterResponseEvent; |
15 | 11 | use Symfony\Component\HttpKernel\HttpKernelInterface; |
16 | 12 |
@@ -2,20 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Loevgaard\DandomainAltapayBundle\Tests\Translation; |
4 | 4 | |
5 | -use Loevgaard\DandomainAltapayBundle\EventListener\ControllerListener; |
|
6 | -use Loevgaard\DandomainAltapayBundle\EventListener\ResponseListener; |
|
7 | -use Loevgaard\DandomainAltapayBundle\Http\TransactionLogger; |
|
8 | -use Loevgaard\DandomainAltapayBundle\Tests\EventListener\Fixture\ControllerWithAnnotation; |
|
9 | 5 | use Loevgaard\DandomainAltapayBundle\Tests\Translation\Fixture\UsingTranslator; |
10 | -use Loevgaard\DandomainAltapayBundle\Translation\TranslatorTrait; |
|
11 | 6 | use PHPUnit\Framework\TestCase; |
12 | -use Doctrine\Common\Annotations\AnnotationReader; |
|
13 | 7 | use Symfony\Component\DependencyInjection\ContainerInterface; |
14 | -use Symfony\Component\HttpFoundation\Request; |
|
15 | -use Symfony\Component\HttpFoundation\Response; |
|
16 | -use Symfony\Component\HttpKernel\Event\FilterControllerEvent; |
|
17 | -use Symfony\Component\HttpKernel\Event\FilterResponseEvent; |
|
18 | -use Symfony\Component\HttpKernel\HttpKernelInterface; |
|
19 | 8 | use Symfony\Component\Translation\IdentityTranslator; |
20 | 9 | |
21 | 10 | class TranslatorTraitTest extends TestCase |