File tree 5 files changed +18
-1
lines changed
5 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 14
14
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
15
15
xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
16
16
colors =" true"
17
+ displayDetailsOnTestsThatTriggerDeprecations =" true"
17
18
displayDetailsOnTestsThatTriggerNotices =" true"
18
19
displayDetailsOnTestsThatTriggerWarnings =" true"
19
20
failOnNotice =" true"
67
68
<var name="privileged_db_port" value="3306"/>
68
69
-->
69
70
<env name =" COLUMNS" value =" 120" />
71
+ <env name =" DOCTRINE_DEPRECATIONS" value =" trigger" />
70
72
</php >
73
+
74
+ <source ignoreSuppressionOfDeprecations =" true" >
75
+ <include >
76
+ <directory >src</directory >
77
+ </include >
78
+ </source >
71
79
</phpunit >
Original file line number Diff line number Diff line change 12
12
use Doctrine \ORM \Query \AST \PathExpression ;
13
13
use Doctrine \ORM \Query \AST \SelectStatement ;
14
14
use Doctrine \ORM \Query \AST \WhereClause ;
15
+ use Doctrine \ORM \Query \SqlOutputWalker ;
15
16
use Doctrine \ORM \Query \SqlWalker ;
16
17
use Doctrine \ORM \Query \TreeWalkerAdapter ;
17
18
use Doctrine \ORM \Tools \Pagination \Paginator ;
@@ -643,7 +644,7 @@ public function testCountQueryStripsParametersInSelect(): void
643
644
self ::assertCount (2 , $ getCountQuery ->invoke ($ paginator )->getParameters ());
644
645
self ::assertCount (9 , $ paginator );
645
646
646
- $ query ->setHint (Query::HINT_CUSTOM_OUTPUT_WALKER , SqlWalker ::class);
647
+ $ query ->setHint (Query::HINT_CUSTOM_OUTPUT_WALKER , SqlOutputWalker ::class);
647
648
648
649
$ paginator = new Paginator ($ query );
649
650
Original file line number Diff line number Diff line change 14
14
use Doctrine \Tests \OrmFunctionalTestCase ;
15
15
use Generator ;
16
16
use PHPUnit \Framework \Attributes \DataProvider ;
17
+ use PHPUnit \Framework \Attributes \WithoutErrorHandler ;
17
18
use ReflectionMethod ;
18
19
use Symfony \Component \VarExporter \Instantiator ;
19
20
use Symfony \Component \VarExporter \VarExporter ;
@@ -34,6 +35,7 @@ protected function setUp(): void
34
35
35
36
/** @param Closure(ParserResult): ParserResult $toSerializedAndBack */
36
37
#[DataProvider('provideToSerializedAndBack ' )]
38
+ #[WithoutErrorHandler]
37
39
public function testSerializeParserResultForQueryWithSqlWalker (Closure $ toSerializedAndBack ): void
38
40
{
39
41
$ query = $ this ->_em
Original file line number Diff line number Diff line change 52
52
use DoctrineGlobalArticle ;
53
53
use LogicException ;
54
54
use PHPUnit \Framework \Attributes \Group as TestGroup ;
55
+ use PHPUnit \Framework \Attributes \WithoutErrorHandler ;
55
56
use ReflectionClass ;
56
57
use stdClass ;
57
58
@@ -1074,6 +1075,7 @@ public function testItAddingLifecycleCallbackOnEmbeddedClassIsIllegal(): void
1074
1075
$ metadata ->addLifecycleCallback ('foo ' , 'bar ' );
1075
1076
}
1076
1077
1078
+ #[WithoutErrorHandler]
1077
1079
public function testGettingAnFQCNForNullIsDeprecated (): void
1078
1080
{
1079
1081
$ metadata = new ClassMetadata (self ::class);
@@ -1112,6 +1114,7 @@ public function testClassNameMappingDiscriminatorValue(): void
1112
1114
);
1113
1115
}
1114
1116
1117
+ #[WithoutErrorHandler]
1115
1118
public function testDiscriminatorMapWithSameClassMultipleTimesDeprecated (): void
1116
1119
{
1117
1120
$ this ->expectDeprecationWithIdentifier ('https://github.com/doctrine/orm/issues/3519 ' );
Original file line number Diff line number Diff line change 6
6
7
7
use Doctrine \Deprecations \PHPUnit \VerifyDeprecations ;
8
8
use Doctrine \ORM \Mapping \Table ;
9
+ use PHPUnit \Framework \Attributes \WithoutErrorHandler ;
9
10
use PHPUnit \Framework \TestCase ;
10
11
11
12
final class TableMappingTest extends TestCase
12
13
{
13
14
use VerifyDeprecations;
14
15
16
+ #[WithoutErrorHandler]
15
17
public function testDeprecationOnIndexesPropertyIsTriggered (): void
16
18
{
17
19
$ this ->expectDeprecationWithIdentifier ('https://github.com/doctrine/orm/pull/11357 ' );
18
20
19
21
new Table (indexes: []);
20
22
}
21
23
24
+ #[WithoutErrorHandler]
22
25
public function testDeprecationOnUniqueConstraintsPropertyIsTriggered (): void
23
26
{
24
27
$ this ->expectDeprecationWithIdentifier ('https://github.com/doctrine/orm/pull/11357 ' );
You can’t perform that action at this time.
0 commit comments