82 Commits

Author SHA1 Message Date
Christian Flothmann
ac1ddbc475 Merge branch '8.0' into 8.1
* 8.0:
  fix merge
  fix merge
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
  Typo
  [HttpClient] Fix and test replacing repeated headers with CachingHttpClient
  [Messenger] Fix processing batches
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
2026-01-06 13:44:28 +01:00
Christian Flothmann
029303f5c3 Merge branch '7.3' into 7.4
* 7.3:
  fix merge
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
  Typo
  [HttpClient] Fix and test replacing repeated headers with CachingHttpClient
  [Messenger] Fix processing batches
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
2026-01-06 13:34:24 +01:00
Christian Flothmann
516235ecf3 Merge branch '6.4' into 7.3
* 6.4:
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
  [HttpClient] Fix and test replacing repeated headers with CachingHttpClient
  [Messenger] Fix processing batches
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
2026-01-06 13:19:16 +01:00
Christian Flothmann
1d41e1f75a do not use PHPUnit mock objects without configured expectations 2026-01-05 14:01:46 +01:00
Dariusz Ruminski
ef7f276afd PHP CS Fixer: enable static_lambda 2025-12-19 09:33:17 +01:00
Christian Flothmann
7095ef54a5 replace PHPUnit annotations with attributes 2025-08-04 09:05:15 +02:00
HypeMC
ccdd87db3c [Console] Simplify using invokable commands when the component is used standalone 2025-06-09 17:40:54 +02:00
Jérôme Tamarelle
8e79d91740 Remove useless uniqid in tempnam calls 2024-07-01 10:39:21 +02:00
Nicolas Grekas
e526d81040 Merge branch '6.3' into 6.4
* 6.3:
  minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
  Fix bad merge
  List CS fix in .git-blame-ignore-revs
  Fix implicitly-required parameters
  List CS fix in .git-blame-ignore-revs
  Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
2024-01-23 15:51:35 +01:00
Nicolas Grekas
9f39bd6765 Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value 2024-01-23 14:51:25 +01:00
Oskar Stark
fccfb9ff03 [Tests] Move expectException closer to the place of the expectation to avoid false positives 2023-10-31 09:40:20 +01:00
Nicolas Grekas
4942e74faa Merge branch '6.3' into 6.4
* 6.3:
  [Console] Fix horizontal table top border is incorrectly rendered
  [Tests] Streamline
  [Uid] Fix UuidV7 collisions within the same ms
  [Validator] updated Romanian translation
2023-10-31 09:18:17 +01:00
Oskar Stark
4eeac66c8b [Tests] Streamline 2023-10-31 08:58:33 +01:00
Nicolas Grekas
aae2c3f0ac Use typed properties in tests as much as possible 2023-07-25 10:53:33 +02:00
Oskar Stark
7e1dafb074 Migrate to static data providers using rector/rector 2023-02-14 09:03:56 +01:00
gndk
c843ab4739 [FrameworkBundle] Fix exit codes in debug:translation command
The `--only-missing` and `--only-unused` options should be independent of
each other.

When using the `--only-missing` option, only **missing** messages
should be relevant to the outcome of the execution. If there are no
missing messages, but some unused messages, the execution of the command
was still successful and no non-zero exit code should be returned.

The same applies when using the `--only-unused` option. In this case,
only **unused** messages should be relevant to the execution result,
even if there are some missing messages.
2022-03-22 16:51:09 +01:00
Alexandre Daubois
aa37f0ee70 [Console] Add completion to debug:translation command 2021-10-26 16:21:24 +02:00
Nate Wiebe
0087552850 [FrameworkBundle][Translation] Extract translation IDs from all of src 2021-03-05 13:17:50 +01:00
Nicolas Grekas
18547282dc Merge branch '4.4' into 5.1
* 4.4:
  Use createMock() and use import instead of FQCN
2021-01-27 11:01:46 +01:00
Oskar Stark
790f1db60d Use createMock() and use import instead of FQCN 2021-01-27 10:09:26 +01:00
Fabien Potencier
ece742b874 Use ::class keyword when possible 2021-01-11 11:34:08 +01:00
Fabien Potencier
4b671a1bd4 Use ::class keyword when possible 2021-01-11 09:57:50 +01:00
Christian Flothmann
a1be26b998 stop using deprecated PHPUnit APIs 2020-08-17 11:35:39 +02:00
Fabien Potencier
79fde10d1e Merge branch '4.4' into 5.1
* 4.4:
  Fix typo
  Fix deprecated libxml_disable_entity_loader
  Add Tagalog translations for validator messages 94, 95, 96 and 99
  PHPUnit's assertContains() performs strict comparisons now.
  [ClassLoader][Routing] Fix namespace parsing on php 8.
  Fix deprecated libxml_disable_entity_loader
  Made reference to PHPUnit\Util\XML::loadfile php5-compatible.
  [Validator] Add missing translations for german and vietnamese
  Modernized deprecated PHPUnit assertion calls
  [Console] The message of "class not found" errors has changed in php 8.
  The PHPUnit\Util\XML class has been removed in PHPUnit 9.3.
  [Console] Make sure we pass a numeric array of arguments to call_user_func_array().
  [Serializer] Fix that it will never reach DOMNode
  [Validator] sync translations
  [VarDumper] Improve previous fix on light array coloration
  [Cache] Fix #37667
2020-08-10 10:03:57 +02:00
Fabien Potencier
bbfab80e67 Merge branch '3.4' into 4.4
* 3.4:
  Add Tagalog translations for validator messages 94, 95, 96 and 99
  PHPUnit's assertContains() performs strict comparisons now.
  [ClassLoader][Routing] Fix namespace parsing on php 8.
  Fix deprecated libxml_disable_entity_loader
  Made reference to PHPUnit\Util\XML::loadfile php5-compatible.
  [Validator] Add missing translations for german and vietnamese
  Modernized deprecated PHPUnit assertion calls
  [Console] The message of "class not found" errors has changed in php 8.
  The PHPUnit\Util\XML class has been removed in PHPUnit 9.3.
  [Console] Make sure we pass a numeric array of arguments to call_user_func_array().
  [Serializer] Fix that it will never reach DOMNode
  [Validator] sync translations
  [VarDumper] Improve previous fix on light array coloration
  [Cache] Fix #37667
2020-08-10 09:27:51 +02:00
Alexander M. Turek
389cb6c90c Modernized deprecated PHPUnit assertion calls 2020-08-09 10:13:48 +02:00
Arun Philip
3c9d3ebcb2 [FrameworkBundle][TranslationDebug] Return non-zero exit code on failure 2020-01-31 09:27:45 +01:00
Tobias Schultze
52f5e0089b remove deprecated global resource dir and kernel.root_dir 2019-08-21 18:47:38 +02:00
Nicolas Grekas
68c01428ec Merge branch '4.4'
* 4.4:
  Fix compatibility with PHPUnit 8
  Disable phpunit typehint patch on 4.3 branch
  Fix deprecation on 4.3
2019-08-08 14:08:24 +02:00
Nicolas Grekas
02916fabb5 Merge branch '4.3' into 4.4
* 4.3:
  Disable phpunit typehint patch on 4.3 branch
  Fix deprecation on 4.3
2019-08-08 14:07:40 +02:00
Jérémy Derussé
8524e966d8 Disable phpunit typehint patch on 4.3 branch 2019-08-08 11:29:19 +02:00
Nicolas Grekas
e3c9725795 Merge branch '4.4'
* 4.4:
  [Debug] Improve UPGRADE files
  remove wrongly added legacy group from test
  consistently throw NotSupportException
  [HttpKernel] Clarify error handler restoring process again
  [HttpClient] Remove CURLOPT_CONNECTTIMEOUT_MS curl opt
  add missing conflict rule
  [Intl] fix nullable phpdocs and useless method visibility of internal class
  remove some more useless phpdocs
  Resilience against file_get_contents() race conditions.
  Turned return type annotations of private methods into php return types.
2019-08-08 11:20:29 +02:00
Alexander M. Turek
1c8b541b88 Turned return type annotations of private methods into php return types. 2019-08-07 16:19:54 +02:00
Jérémy Derussé
5c5d19efce Use assertStringContainsString when needed 2019-08-06 08:15:37 +02:00
Nicolas Grekas
6c97737016 Merge branch '4.4'
* 4.4:
  Remove use of ForwardCompatTrait
  Remove deprecated methods assertArraySubset
2019-08-04 00:02:11 +02:00
Nicolas Grekas
8ed60f2745 Merge branch '3.4' into 4.3
* 3.4:
  Remove use of ForwardCompatTrait
  Remove deprecated methods assertArraySubset
2019-08-03 23:50:52 +02:00
Jérémy Derussé
bd7565391c Remove use of ForwardCompatTrait 2019-08-03 23:15:25 +02:00
Nicolas Grekas
6ce1b9e718 Merge branch '4.4'
* 4.4:
  Fix tests
  Fix deprecated phpunit annotation
2019-08-02 15:12:48 +02:00
Nicolas Grekas
7649a002de Merge branch '3.4' into 4.3
* 3.4:
  Fix tests
  Fix deprecated phpunit annotation
2019-08-02 14:15:04 +02:00
Jérémy Derussé
2c4b231c8b Fix deprecated phpunit annotation 2019-08-02 00:48:42 +02:00
Nicolas Grekas
925186f829 Merge branch '4.4'
* 4.4:
  [Cache] fix cs
  Make tests support phpunit 8
  Allow Travis CI to build on PHP 7.4
  [DI] Allow dumping the container in one file instead of many files
2019-08-01 00:36:24 +02:00
Nicolas Grekas
29ac3ade7f Merge branch '3.4' into 4.3
* 3.4:
  [Cache] fix cs
  Make tests support phpunit 8
2019-08-01 00:32:32 +02:00
Nicolas Grekas
2cf89046b1 Make tests support phpunit 8 2019-07-31 23:55:24 +02:00
Nicolas Grekas
19f63d68ca Merge branch '4.4'
* 4.4:
  Use willReturn() instead of will(returnValue()).
2019-05-30 18:12:02 +02:00
Nicolas Grekas
3e629bd0ff Merge branch '4.2' into 4.3
* 4.2:
  Use willReturn() instead of will(returnValue()).
2019-05-30 18:10:05 +02:00
Nicolas Grekas
d368509cc7 Merge branch '3.4' into 4.2
* 3.4:
  Use willReturn() instead of will(returnValue()).
2019-05-30 18:06:08 +02:00
Alexander M. Turek
6e2e2de6a8 Use willReturn() instead of will(returnValue()). 2019-05-30 17:47:52 +02:00
Nicolas Grekas
03715f2333 minor #31668 [FrameworkBundle] Removed capability to load/debug/update legacy translation directories (yceruto)
This PR was merged into the 5.0-dev branch.

Discussion
----------

[FrameworkBundle] Removed capability to load/debug/update legacy translation directories

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Ref: https://github.com/symfony/symfony/pull/28997

Commits
-------

b6eb1f4979 Removed capability to load/debug/update legacy translation directories
2019-05-29 11:30:31 +02:00
Yonel Ceruto
065671a758 Removed capability to load/debug/update legacy translation directories 2019-05-28 19:14:57 -04:00
Yonel Ceruto
39b00afb45 Remove dead code 2019-05-28 18:51:21 -04:00