Skip to content

Commit

Permalink
tests - added @Covers tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nuryagdym committed Nov 19, 2023
1 parent 2d8be07 commit 7e01fa0
Show file tree
Hide file tree
Showing 46 changed files with 132 additions and 24 deletions.
3 changes: 3 additions & 0 deletions tests/Crypt/EstPosCryptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\Crypt\EstPosCrypt
*/
class EstPosCryptTest extends TestCase
{
private EstPosAccount $account;
Expand Down
3 changes: 3 additions & 0 deletions tests/Crypt/EstV3PosCryptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\Crypt\EstV3PosCrypt
*/
class EstV3PosCryptTest extends TestCase
{
private EstPosAccount $account;
Expand Down
6 changes: 6 additions & 0 deletions tests/Crypt/GarantiPosCryptTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
/**
* @license MIT
*/

namespace Mews\Pos\Tests\Crypt;

Expand All @@ -9,6 +12,9 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\Crypt\GarantiPosCrypt
*/
class GarantiPosCryptTest extends TestCase
{
private GarantiPosAccount $account;
Expand Down
6 changes: 6 additions & 0 deletions tests/Crypt/InterPosCryptTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
/**
* @license MIT
*/

namespace Mews\Pos\Tests\Crypt;

Expand All @@ -9,6 +12,9 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\Crypt\InterPosCrypt
*/
class InterPosCryptTest extends TestCase
{
private InterPosAccount $account;
Expand Down
3 changes: 3 additions & 0 deletions tests/Crypt/KuveytPosCryptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\Crypt\KuveytPosCrypt
*/
class KuveytPosCryptTest extends TestCase
{
public KuveytPosCrypt $crypt;
Expand Down
3 changes: 3 additions & 0 deletions tests/Crypt/PayFlexCP4CryptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\Crypt\PayFlexCPV4Crypt
*/
class PayFlexCP4CryptTest extends TestCase
{
/** @var array<string, string>|array<string, float> */
Expand Down
7 changes: 6 additions & 1 deletion tests/Crypt/PayForPosCryptTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

/**
* @license MIT
*/
namespace Mews\Pos\Tests\Crypt;

use Mews\Pos\Crypt\PayForPosCrypt;
Expand All @@ -9,6 +11,9 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\Crypt\PayForPosCrypt
*/
class PayForPosCryptTest extends TestCase
{
public PayForPosCrypt $crypt;
Expand Down
7 changes: 6 additions & 1 deletion tests/Crypt/PosNetCryptTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

/**
* @license MIT
*/
namespace Mews\Pos\Tests\Crypt;

use Mews\Pos\Crypt\PosNetCrypt;
Expand All @@ -9,6 +11,9 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\Crypt\PosNetCrypt
*/
class PosNetCryptTest extends TestCase
{
public PosNetCrypt $crypt;
Expand Down
7 changes: 6 additions & 1 deletion tests/Crypt/PosNetV1PosCryptTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

/**
* @license MIT
*/
namespace Mews\Pos\Tests\Crypt;

use Mews\Pos\Crypt\PosNetV1PosCrypt;
Expand All @@ -9,6 +11,9 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\Crypt\PosNetV1PosCrypt
*/
class PosNetV1PosCryptTest extends TestCase
{
public PosNetV1PosCrypt $crypt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Psr\Log\NullLogger;

/**
* EstPosRequestDataMapperTest
* @covers \Mews\Pos\DataMapper\RequestDataMapper\EstPosRequestDataMapper
*/
class EstPosRequestDataMapperTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\DataMapper\RequestDataMapper\EstV3PosRequestDataMapper
*/
class EstV3PosRequestDataMapperTest extends TestCase
{
private EstPosAccount $account;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Psr\Log\NullLogger;

/**
* GarantiPosRequestDataMapperTest
* @covers \Mews\Pos\DataMapper\RequestDataMapper\GarantiPosRequestDataMapper
*/
class GarantiPosRequestDataMapperTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Psr\Log\NullLogger;

/**
* InterPosRequestDataMapperTest
* @covers \Mews\Pos\DataMapper\RequestDataMapper\InterPosRequestDataMapper
*/
class InterPosRequestDataMapperTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Psr\Log\NullLogger;

/**
* KuveytPosRequestDataMapperTest
* @covers \Mews\Pos\DataMapper\RequestDataMapper\KuveytPosRequestDataMapper
*/
class KuveytPosRequestDataMapperTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Symfony\Component\EventDispatcher\EventDispatcher;

/**
* PayFlexCPV4PosRequestDataMapperTest
* @covers \Mews\Pos\DataMapper\RequestDataMapper\PayFlexCPV4PosRequestDataMapper
*/
class PayFlexCPV4PosRequestDataMapperTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Psr\EventDispatcher\EventDispatcherInterface;

/**
* PayFlexV4PosRequestDataMapperTest
* @covers \Mews\Pos\DataMapper\RequestDataMapper\PayFlexV4PosRequestDataMapper
*/
class PayFlexV4PosRequestDataMapperTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Psr\Log\NullLogger;

/**
* PayForPosRequestDataMapperTest
* @covers \Mews\Pos\DataMapper\RequestDataMapper\PayForPosRequestDataMapper
*/
class PayForPosRequestDataMapperTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Psr\Log\NullLogger;

/**
* PosNetRequestDataMapperTest
* @covers \Mews\Pos\DataMapper\RequestDataMapper\PosNetRequestDataMapper
*/
class PosNetRequestDataMapperTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Symfony\Component\EventDispatcher\EventDispatcher;

/**
* PosNetV1PosRequestDataMapperTest
* @covers \Mews\Pos\DataMapper\RequestDataMapper\PosNetV1PosRequestDataMapper
*/
class PosNetV1PosRequestDataMapperTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\DataMapper\ResponseDataMapper\EstPosResponseDataMapper
*/
class EstPosResponseDataMapperTest extends TestCase
{
private EstPosResponseDataMapper $responseDataMapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\DataMapper\ResponseDataMapper\GarantiPosResponseDataMapper
*/
class GarantiPosResponseDataMapperTest extends TestCase
{
private GarantiPosResponseDataMapper $responseDataMapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\DataMapper\ResponseDataMapper\InterPosResponseDataMapper
*/
class InterPosResponseDataMapperTest extends TestCase
{
private InterPosResponseDataMapper $responseDataMapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\DataMapper\ResponseDataMapper\KuveytPosResponseDataMapper
*/
class KuveytPosResponseDataMapperTest extends TestCase
{
private KuveytPosResponseDataMapper $responseDataMapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;


/**
* @covers \Mews\Pos\DataMapper\ResponseDataMapper\PayFlexCPV4PosResponseDataMapper
*/
class PayFlexCPV4PosResponseDataMapperTest extends TestCase
{
private PayFlexCPV4PosResponseDataMapper $responseDataMapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
/**
* @license MIT
*/

namespace Mews\Pos\Tests\DataMapper\ResponseDataMapper;

Expand All @@ -10,6 +13,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\DataMapper\ResponseDataMapper\PayFlexV4PosResponseDataMapper
*/
class PayFlexV4PosResponseDataMapperTest extends TestCase
{
private PayFlexV4PosResponseDataMapper $responseDataMapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
/**
* @license MIT
*/

namespace Mews\Pos\Tests\DataMapper\ResponseDataMapper;

Expand All @@ -10,6 +13,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\DataMapper\ResponseDataMapper\PayForPosResponseDataMapper
*/
class PayForPosResponseDataMapperTest extends TestCase
{
private PayForPosResponseDataMapper $responseDataMapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
/**
* @license MIT
*/

namespace Mews\Pos\Tests\DataMapper\ResponseDataMapper;

Expand All @@ -10,6 +13,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\DataMapper\ResponseDataMapper\PosNetResponseDataMapper
*/
class PosNetResponseDataMapperTest extends TestCase
{
private PosNetResponseDataMapper $responseDataMapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
/**
* @license MIT
*/

namespace Mews\Pos\Tests\DataMapper\ResponseDataMapper;

Expand All @@ -10,6 +13,9 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\NullLogger;

/**
* @covers \Mews\Pos\DataMapper\ResponseDataMapper\PosNetV1PosResponseDataMapper
*/
class PosNetV1PosResponseDataMapperTest extends TestCase
{
private PosNetV1PosResponseDataMapper $responseDataMapper;
Expand Down
2 changes: 1 addition & 1 deletion tests/Factory/CreditCardFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use PHPUnit\Framework\TestCase;

/**
* CreditCardFactoryTest
* @covers \Mews\Pos\Factory\CreditCardFactory
*/
class CreditCardFactoryTest extends TestCase
{
Expand Down
5 changes: 2 additions & 3 deletions tests/Gateways/EstPosTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@
use Symfony\Component\HttpFoundation\Request;

/**
* EstPosTest
* @covers \Mews\Pos\Gateways\EstPos
*/
class EstPosTest extends TestCase
{
private EstPosAccount $account;

/** @var EstPos */
private PosInterface $pos;
private EstPos $pos;

/** @var array<string, mixed> */
private $config;
Expand Down
2 changes: 1 addition & 1 deletion tests/Gateways/GarantiPosTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Symfony\Component\EventDispatcher\EventDispatcher;

/**
* GarantiPosTest
* @covers \Mews\Pos\Gateways\GarantiPos
*/
class GarantiPosTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Gateways/KuveytPosTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Symfony\Component\HttpFoundation\Request;

/**
* KuveytPosTest
* @covers \Mews\Pos\Gateways\KuveytPos
*/
class KuveytPosTest extends TestCase
{
Expand Down
Loading

0 comments on commit 7e01fa0

Please sign in to comment.