File tree Expand file tree Collapse file tree 9 files changed +24
-31
lines changed
Expand file tree Collapse file tree 9 files changed +24
-31
lines changed Original file line number Diff line number Diff line change 11/.phpcs.cache
2- /.phpunit.result. cache
2+ /.phpunit.cache /
33/ci /20 * /
44/config /application.config.php
55/coverage.xml
Original file line number Diff line number Diff line change 4242 "ocramius/proxy-manager" : " ^2.2.0" ,
4343 "phpstan/phpstan" : " ^1.4.6" ,
4444 "phpstan/phpstan-phpunit" : " ^1.0.0" ,
45- "phpunit/phpunit" : " ^9 .5.13 " ,
45+ "phpunit/phpunit" : " ^10 .5.40 " ,
4646 "squizlabs/php_codesniffer" : " ^3.6.2"
4747 },
4848 "conflict" : {
File renamed without changes.
Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" ?>
2- <phpunit
3- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
5- bootstrap =" ./vendor/autoload.php"
6- colors =" true"
7- convertErrorsToExceptions =" true"
8- convertNoticesToExceptions =" true"
9- convertWarningsToExceptions =" true"
10- convertDeprecationsToExceptions =" true"
11- verbose =" true"
12- stopOnFailure =" false"
13- processIsolation =" false"
14- backupGlobals =" false"
15- >
16- <coverage includeUncoveredFiles =" true" >
1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5/phpunit.xsd"
4+ bootstrap =" vendor/autoload.php"
5+ colors =" true"
6+ cacheDirectory =" .phpunit.cache" >
7+ <testsuites >
8+ <testsuite name =" DoctrineORMModule Test Suite" >
9+ <directory >./tests</directory >
10+ </testsuite >
11+ </testsuites >
12+ <source >
1713 <include >
1814 <directory suffix =" .php" >./src</directory >
1915 </include >
20- </coverage >
21- <testsuite name =" DoctrineORMModule test" >
22- <directory >./tests</directory >
23- </testsuite >
16+ </source >
2417</phpunit >
Original file line number Diff line number Diff line change 1010 * @ORM\Entity
1111 * @ORM\Table(name="doctrine_orm_module_test")
1212 */
13- class Test
13+ class TestEntity
1414{
1515 /**
1616 * @ORM\Id
Original file line number Diff line number Diff line change 88use Doctrine \Persistence \ObjectManager ;
99use DoctrineORMModuleTest \Assets \Entity \Category ;
1010use DoctrineORMModuleTest \Assets \Entity \Country ;
11- use DoctrineORMModuleTest \Assets \Entity \Test as TestEntity ;
11+ use DoctrineORMModuleTest \Assets \Entity \TestEntity ;
1212
1313/**
1414 * Fixture that loads a constant amount of \DoctrineORMModuleTest\Assets\Entity\Test objects into the manager
Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ public function testCanHide(): void
9494 }
9595
9696 /**
97- * @covers \DoctrineORMModule\Collector\MappingCollector::serialize
98- * @covers \DoctrineORMModule\Collector\MappingCollector::unserialize
97+ * @covers \DoctrineORMModule\Collector\MappingCollector::__serialize
98+ * @covers \DoctrineORMModule\Collector\MappingCollector::__unserialize
9999 * @covers \DoctrineORMModule\Collector\MappingCollector::collect
100100 */
101101 public function testSerializeUnserializeAndCollectWithNoMetadataFactory (): void
Original file line number Diff line number Diff line change 1010use Doctrine \ORM \QueryBuilder ;
1111use Doctrine \ORM \Tools \Pagination \Paginator as DoctrinePaginator ;
1212use DoctrineORMModule \Paginator \Adapter \DoctrinePaginator as PaginatorAdapter ;
13- use DoctrineORMModuleTest \Assets \Entity \Test ;
13+ use DoctrineORMModuleTest \Assets \Entity \TestEntity ;
1414use DoctrineORMModuleTest \Assets \Fixture \TestFixture ;
1515use DoctrineORMModuleTest \Framework \TestCase ;
1616
@@ -46,7 +46,7 @@ public function setUp(): void
4646 ->getEntityManager ()
4747 ->createQueryBuilder ()
4848 ->select ('t ' )
49- ->from (Test ::class, 't ' )
49+ ->from (TestEntity ::class, 't ' )
5050 ->orderBy ('t.id ' , 'ASC ' );
5151
5252 $ this ->paginator = new DoctrinePaginator ($ this ->queryBuilder );
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- use Doctrine \DBAL \Driver \PDO \SQLite \Driver ;
5+ use Doctrine \DBAL \Driver \PDO \SQLite \Driver as SQLiteDriver ;
66use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
77use DoctrineModule \Service \EventManagerFactory ;
88use DoctrineORMModule \Service \ConfigurationFactory ;
5555 'orm_default ' => [
5656 'configuration ' => 'orm_default ' ,
5757 'eventmanager ' => 'orm_default ' ,
58- 'driverClass ' => Driver ::class,
58+ 'driverClass ' => SQLiteDriver ::class,
5959 'params ' => ['memory ' => true ],
6060 ],
6161 'orm_other ' => [
6262 'configuration ' => 'orm_other ' ,
6363 'eventmanager ' => 'orm_other ' ,
64- 'driverClass ' => Driver ::class,
64+ 'driverClass ' => SQLiteDriver ::class,
6565 'params ' => ['memory ' => true ],
6666 ],
6767 ],
You can’t perform that action at this time.
0 commit comments