Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68563ec

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Remove always-true requirement Fix the detection of the stable Symfony branch
2 parents 65fc0fb + a2c8e84 commit 68563ec

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ before_install:
5555
export COMPOSER_UP='composer update --no-progress --ansi'
5656
export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
5757
export SYMFONY_DEPRECATIONS_HELPER=max[indirect]=170
58-
export SYMFONY_FEATURE_BRANCH=$(curl -s https://flex.symfony.com/versions.json | jq -r '."dev-name"')
58+
export SYMFONY_FLEX_VERSIONS=$(curl -s https://flex.symfony.com/versions.json)
59+
export SYMFONY_FEATURE_BRANCH=$(echo $SYMFONY_FLEX_VERSIONS | jq -r '."dev"')
5960
6061
nanoseconds () {
6162
local cmd="date"
@@ -204,7 +205,10 @@ install:
204205
# For the feature-branch, when deps=high, the version before it is checked out and tested with the locally patched components
205206
if [[ $deps = high && $TRAVIS_BRANCH = $SYMFONY_FEATURE_BRANCH ]]; then
206207
export FLIP='^'
207-
export SYMFONY_VERSION=$(echo "$SYMFONY_VERSIONS" | grep -o '/[1-9]\.[0-9].*' | tail -n 1 | sed s/.//) &&
208+
export SYMFONY_VERSION=$(echo $SYMFONY_FLEX_VERSIONS | jq -r '."next"')
209+
if [ $SYMFONY_VERSION = $SYMFONY_FEATURE_BRANCH ]; then
210+
export SYMFONY_VERSION = $(echo $SYMFONY_FLEX_VERSIONS | jq -r '."stable"')
211+
fi
208212
git fetch --depth=2 origin $SYMFONY_VERSION &&
209213
git checkout -m FETCH_HEAD &&
210214
export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ public function testGc()
122122
$this->proxy->gc(86400);
123123
}
124124

125-
/**
126-
* @requires PHPUnit 5.1
127-
*/
128125
public function testValidateId()
129126
{
130127
$mock = $this->createMock(TestSessionHandler::class);
@@ -137,9 +134,6 @@ public function testValidateId()
137134
$this->assertTrue($this->proxy->validateId('id'));
138135
}
139136

140-
/**
141-
* @requires PHPUnit 5.1
142-
*/
143137
public function testUpdateTimestamp()
144138
{
145139
$mock = $this->createMock(TestSessionHandler::class);

src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ public function testGetValueThrowsExceptionIfUninitializedPropertyWithGetter()
186186
$this->propertyAccessor->getValue(new UninitializedPrivateProperty(), 'uninitialized');
187187
}
188188

189-
/**
190-
* @requires PHP 7
191-
*/
192189
public function testGetValueThrowsExceptionIfUninitializedPropertyWithGetterOfAnonymousClass()
193190
{
194191
$this->expectException(AccessException::class);
@@ -206,9 +203,6 @@ public function getUninitialized(): array
206203
$this->propertyAccessor->getValue($object, 'uninitialized');
207204
}
208205

209-
/**
210-
* @requires PHP 7
211-
*/
212206
public function testGetValueThrowsExceptionIfUninitializedPropertyWithGetterOfAnonymousStdClass()
213207
{
214208
$this->expectException(AccessException::class);
@@ -226,9 +220,6 @@ public function getUninitialized(): array
226220
$this->propertyAccessor->getValue($object, 'uninitialized');
227221
}
228222

229-
/**
230-
* @requires PHP 7
231-
*/
232223
public function testGetValueThrowsExceptionIfUninitializedPropertyWithGetterOfAnonymousChildClass()
233224
{
234225
$this->expectException(AccessException::class);

0 commit comments

Comments
 (0)