File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ jobs:
1414 strategy :
1515 matrix :
1616 include :
17- - php-version : 7.1
18- symfony-version : 4.4.*
1917 - php-version : 7.4
2018 symfony-version : 4.4.*
21- - php-version : 7.2
22- symfony-version : 5.2 .*
19+ - php-version : 8.0
20+ symfony-version : 4.4 .*
2321 - php-version : 7.4
2422 symfony-version : 5.2.*
23+ - php-version : 8.0
24+ symfony-version : 5.2.*
2525
2626 steps :
2727 - name : " Checkout"
4848 strategy :
4949 matrix :
5050 include :
51- - php-version : 7.4
52- symfony-version : 4.4.*
51+ - php-version : 8.0
5352
5453 steps :
5554 - name : " Checkout"
6261 php-version : ${{ matrix.php-version }}
6362
6463 - name : " Install dependencies with composer"
65- run : |
66- composer require --no-update "symfony/framework-bundle:${{ matrix.symfony-version }}"
67- composer update --no-interaction --no-progress --no-suggest
64+ run : composer update --no-interaction --no-progress --no-suggest
6865
6966 - name : " Run static analyzis with phpstan/phpstan"
7067 run : vendor/bin/phpstan analyze
7673 strategy :
7774 matrix :
7875 include :
79- - php-version : 7.4
80- symfony-version : 4.4.*
76+ - php-version : 8.0
8177
8278 steps :
8379 - name : " Checkout"
9086 php-version : ${{ matrix.php-version }}
9187
9288 - name : " Install dependencies with composer"
93- run : |
94- composer require --no-update "symfony/framework-bundle:${{ matrix.symfony-version }}"
95- composer update --no-interaction --no-progress --no-suggest
89+ run : composer update --no-interaction --no-progress --no-suggest
9690
9791 - name : " Run checkstyle with squizlabs/php_codesniffer"
9892 run : vendor/bin/phpcs
10498 strategy :
10599 matrix :
106100 include :
107- - php-version : 7.4
108- symfony-version : 4.4.*
101+ - php-version : 8.0
109102
110103 steps :
111104 - name : " Checkout"
@@ -118,9 +111,7 @@ jobs:
118111 php-version : ${{ matrix.php-version }}
119112
120113 - name : " Install dependencies with composer"
121- run : |
122- composer require --no-update "symfony/framework-bundle:${{ matrix.symfony-version }}"
123- composer update --no-interaction --no-progress --no-suggest
114+ run : composer update --no-interaction --no-progress --no-suggest
124115
125116 - name : " Run tests with phpunit/phpunit"
126117 env :
Original file line number Diff line number Diff line change 99 }
1010 ],
1111 "require" : {
12- "php" : " ^7.1.3 " ,
12+ "php" : " ^7.4|^8.0 " ,
1313 "ext-openssl" : " *" ,
1414 "symfony/framework-bundle" : " ^4.4|^5.0" ,
1515 "doctrine/orm" : " ^2.7" ,
1616 "doctrine/doctrine-bundle" : " ^2.0" ,
1717 "yokai/dependency-injection" : " ^1.0"
1818 },
1919 "require-dev" : {
20- "phpunit/phpunit" : " ^7.0" ,
21- "symfony/yaml" : " ^4.4|^5.0" ,
22- "phpstan/phpstan" : " ^0.12.80" ,
23- "squizlabs/php_codesniffer" : " ^3.5"
20+ "phpunit/phpunit" : " ^9.5" ,
21+ "phpspec/prophecy-phpunit" : " ^2.0" ,
22+ "symfony/yaml" : " ^4.4|^5.2" ,
23+ "phpstan/phpstan" : " ^0.12" ,
24+ "squizlabs/php_codesniffer" : " ^3.6"
2425 },
2526 "autoload" : {
2627 "psr-4" : { "Yokai\\ SecurityTokenBundle\\ " : " src/" }
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2-
3- <phpunit backupGlobals =" false"
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
4+ backupGlobals =" false"
45 backupStaticAttributes =" false"
56 convertErrorsToExceptions =" true"
67 convertNoticesToExceptions =" true"
78 convertWarningsToExceptions =" true"
89 processIsolation =" false"
910 stopOnFailure =" false"
1011 colors =" true"
11- bootstrap =" vendor/autoload.php"
12- >
13-
12+ bootstrap =" vendor/autoload.php" >
1413 <php >
1514 <server name =" KERNEL_CLASS" value =" Yokai\SecurityTokenBundle\Tests\Kernel" />
1615 </php >
17-
1816 <testsuites >
1917 <testsuite name =" YokaiSecurityTokenBundle Test Suite" >
2018 <directory >./tests</directory >
2119 </testsuite >
2220 </testsuites >
23-
24- <filter >
25- <whitelist >
21+ <coverage >
22+ <include >
2623 <directory >./src</directory >
27- </whitelist >
28- </filter >
24+ </include >
25+ </coverage >
2926</phpunit >
Original file line number Diff line number Diff line change 44
55namespace Yokai \SecurityTokenBundle \Tests \Command ;
66
7+ use Prophecy \PhpUnit \ProphecyTrait ;
78use Prophecy \Prophecy \ObjectProphecy ;
89use Symfony \Bundle \FrameworkBundle \Console \Application ;
910use Symfony \Bundle \FrameworkBundle \Test \KernelTestCase ;
1819 */
1920class ArchiveTokenCommandTest extends KernelTestCase
2021{
22+ use ProphecyTrait;
23+
2124 /**
2225 * @var ArchivistInterface|ObjectProphecy
2326 */
Original file line number Diff line number Diff line change 1010use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
1111use Generator ;
1212use PHPUnit \Framework \TestCase ;
13+ use Prophecy \PhpUnit \ProphecyTrait ;
1314use Prophecy \Prophecy \ProphecySubjectInterface ;
1415use Psr \Log \LoggerInterface ;
1516use Symfony \Component \Config \FileLocator ;
3738 */
3839class DependencyInjectionTest extends TestCase
3940{
41+ use ProphecyTrait;
42+
4043 /**
4144 * @var ContainerBuilder
4245 */
Original file line number Diff line number Diff line change 66
77use DateTime ;
88use PHPUnit \Framework \TestCase ;
9+ use Prophecy \PhpUnit \ProphecyTrait ;
910use Prophecy \Prophecy \ObjectProphecy ;
1011use Yokai \SecurityTokenBundle \Configuration \TokenConfiguration ;
1112use Yokai \SecurityTokenBundle \Configuration \TokenConfigurationRegistry ;
2324 */
2425class TokenFactoryTest extends TestCase
2526{
27+ use ProphecyTrait;
28+
2629 /**
2730 * @var InformationGuesserInterface|ObjectProphecy
2831 */
Original file line number Diff line number Diff line change 77use InvalidArgumentException ;
88use PHPUnit \Framework \TestCase ;
99use Prophecy \Argument ;
10+ use Prophecy \PhpUnit \ProphecyTrait ;
1011use Prophecy \Prophecy \ObjectProphecy ;
1112use Yokai \SecurityTokenBundle \Manager \ChainUserManager ;
1213use Yokai \SecurityTokenBundle \Manager \UserManagerInterface ;
2021 */
2122class ChainUserManagerTest extends TestCase
2223{
24+ use ProphecyTrait;
25+
2326 private function manager ($ managers ): ChainUserManager
2427 {
2528 return new ChainUserManager ($ managers );
Original file line number Diff line number Diff line change 99use Doctrine \Persistence \Mapping \ClassMetadata ;
1010use Doctrine \Persistence \ObjectManager ;
1111use PHPUnit \Framework \TestCase ;
12+ use Prophecy \PhpUnit \ProphecyTrait ;
1213use Prophecy \Prophecy \ObjectProphecy ;
1314use Yokai \SecurityTokenBundle \Manager \DoctrineUserManager ;
1415
1920 */
2021class DoctrineUserManagerTest extends TestCase
2122{
23+ use ProphecyTrait;
24+
2225 /**
2326 * @var ManagerRegistry|ObjectProphecy
2427 */
Original file line number Diff line number Diff line change 66
77use PHPUnit \Framework \TestCase ;
88use Prophecy \Argument ;
9+ use Prophecy \PhpUnit \ProphecyTrait ;
910use Prophecy \Prophecy \ObjectProphecy ;
1011use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
1112use Yokai \SecurityTokenBundle \Entity \Token ;
3536 */
3637class TokenManagerTest extends TestCase
3738{
39+ use ProphecyTrait;
40+
3841 /**
3942 * @var TokenFactoryInterface|ObjectProphecy
4043 */
Original file line number Diff line number Diff line change 77use Doctrine \ORM \EntityManager ;
88use Doctrine \ORM \EntityRepository ;
99use PHPUnit \Framework \TestCase ;
10+ use Prophecy \PhpUnit \ProphecyTrait ;
1011use Prophecy \Prophecy \ObjectProphecy ;
1112use Yokai \SecurityTokenBundle \Entity \Token ;
1213use Yokai \SecurityTokenBundle \Exception \TokenConsumedException ;
2122 */
2223class DoctrineORMTokenRepositoryTest extends TestCase
2324{
25+ use ProphecyTrait;
26+
2427 /**
2528 * @var EntityManager|ObjectProphecy
2629 */
You can’t perform that action at this time.
0 commit comments