[FrameworkBundle] fix tests
This commit is contained in:
parent
ac2c3a936d
commit
21621ab783
|
@ -198,7 +198,12 @@ jobs:
|
|||
git checkout -m FETCH_HEAD
|
||||
COMPONENTS=$(echo "$COMPONENTS" | xargs dirname | xargs -n1 -I{} bash -c "[ -e '{}/phpunit.xml.dist' ] && echo '{}'" | sort || true)
|
||||
(cd src/Symfony/Component/HttpFoundation; composer require --dev --no-update mongodb/mongodb)
|
||||
[[ ! $COMPONENTS ]] || echo "$COMPONENTS" | parallel -j +3 "_run_tests {} 'cd {} && rm composer.lock vendor/ -Rf && $COMPOSER_UP && $PHPUNIT$LEGACY'" || X=1
|
||||
if [[ $COMPONENTS ]]; then
|
||||
echo "::group::install phpunit"
|
||||
./phpunit install
|
||||
echo "::endgroup::"
|
||||
echo "$COMPONENTS" | parallel -j +3 "_run_tests {} 'cd {} && rm composer.lock vendor/ -Rf && $COMPOSER_UP && $PHPUNIT$LEGACY'" || X=1
|
||||
fi
|
||||
fi
|
||||
|
||||
[[ ! $X ]] || (exit 1)
|
||||
|
|
|
@ -200,7 +200,7 @@ class ObjectsProvider
|
|||
{
|
||||
$eventDispatcher = new EventDispatcher();
|
||||
|
||||
$eventDispatcher->addListener('event1', 'global_function', 255);
|
||||
$eventDispatcher->addListener('event1', 'var_dump', 255);
|
||||
$eventDispatcher->addListener('event1', function () { return 'Closure'; }, -1);
|
||||
$eventDispatcher->addListener('event2', new CallableClass());
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
{
|
||||
"type": "function",
|
||||
"name": "global_function",
|
||||
"name": "var_dump",
|
||||
"priority": 255
|
||||
},
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## Listener 1
|
||||
|
||||
- Type: `function`
|
||||
- Name: `global_function`
|
||||
- Name: `var_dump`
|
||||
- Priority: `255`
|
||||
|
||||
## Listener 2
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
[33mRegistered Listeners for "event1" Event[39m
|
||||
[33m=======================================[39m
|
||||
|
||||
------- ------------------- ----------
|
||||
[32m Order [39m [32m Callable [39m [32m Priority [39m
|
||||
------- ------------------- ----------
|
||||
#1 global_function() 255
|
||||
#2 Closure() -1
|
||||
------- ------------------- ----------
|
||||
------- ------------ ----------
|
||||
[32m Order [39m [32m Callable [39m [32m Priority [39m
|
||||
------- ------------ ----------
|
||||
#1 var_dump() 255
|
||||
#2 Closure() -1
|
||||
------- ------------ ----------
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<event-dispatcher>
|
||||
<callable type="function" name="global_function" priority="255"/>
|
||||
<callable type="function" name="var_dump" priority="255"/>
|
||||
<callable type="closure" priority="-1"/>
|
||||
</event-dispatcher>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"event1": [
|
||||
{
|
||||
"type": "function",
|
||||
"name": "global_function",
|
||||
"name": "var_dump",
|
||||
"priority": 255
|
||||
},
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
### Listener 1
|
||||
|
||||
- Type: `function`
|
||||
- Name: `global_function`
|
||||
- Name: `var_dump`
|
||||
- Priority: `255`
|
||||
|
||||
### Listener 2
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
[33m"event1" event[39m
|
||||
[33m--------------[39m
|
||||
|
||||
------- ------------------- ----------
|
||||
[32m Order [39m [32m Callable [39m [32m Priority [39m
|
||||
------- ------------------- ----------
|
||||
#1 global_function() 255
|
||||
#2 Closure() -1
|
||||
------- ------------------- ----------
|
||||
------- ------------ ----------
|
||||
[32m Order [39m [32m Callable [39m [32m Priority [39m
|
||||
------- ------------ ----------
|
||||
#1 var_dump() 255
|
||||
#2 Closure() -1
|
||||
------- ------------ ----------
|
||||
|
||||
[33m"event2" event[39m
|
||||
[33m--------------[39m
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<event-dispatcher>
|
||||
<event name="event1">
|
||||
<callable type="function" name="global_function" priority="255"/>
|
||||
<callable type="function" name="var_dump" priority="255"/>
|
||||
<callable type="closure" priority="-1"/>
|
||||
</event>
|
||||
<event name="event2">
|
||||
|
|
|
@ -166,7 +166,7 @@
|
|||
<argument type="service" id="twig" />
|
||||
<argument type="service" id="twig.error_renderer.html.inner" />
|
||||
<argument type="service">
|
||||
<service>
|
||||
<service class="bool">
|
||||
<factory class="Symfony\Bridge\Twig\ErrorRenderer\TwigErrorRenderer" method="isDebug" />
|
||||
<argument type="service" id="request_stack" />
|
||||
<argument>%kernel.debug%</argument>
|
||||
|
|
Reference in New Issue