Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55fe51a

Browse files
Run the phpunit-bridge from a PR
1 parent8173daf commit55fe51a

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

‎.travis.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,18 @@ before_install:
194194
fi
195195
196196
install:
197+
-|
198+
# Install the phpunit-bridge from a PR if required
199+
#
200+
# To run a PR with a patched phpunit-bridge, first submit the path for the
201+
# phpunit-bridge as a separate PR against the next feature branch then
202+
# uncomment and update the following line with the PR number and change the
203+
# required version of the bridge in the root composer.json to the version
204+
# of the next feature version (e.g "symfony/phpunit-bridge": "4.4.x@dev")
205+
git fetch origin refs/pull/32886/head
206+
git rm -rq src/Symfony/Bridge/PhpUnit
207+
git checkout -q FETCH_HEAD -- src/Symfony/Bridge/PhpUnit
208+
197209
-|
198210
# Create local composer packages for each patched components and reference them in composer.json files when cross-testing components
199211
if [[ ! $deps ]]; then
@@ -206,6 +218,8 @@ install:
206218
mv composer.json composer.json.phpunit &&
207219
mv composer.json.orig composer.json
208220
fi
221+
git rm -fq -- src/Symfony/Bridge/PhpUnit/composer.json
222+
git diff --staged -- src/Symfony/Bridge/PhpUnit/ | git apply -R --index
209223
210224
-|
211225
# For the master branch, when deps=high, the version before master is checked out and tested with the locally patched components

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"ocramius/proxy-manager":"~0.4|~1.0|~2.0",
9999
"predis/predis":"~1.0",
100100
"egulias/email-validator":"~1.2,>=1.2.8|~2.0",
101-
"symfony/phpunit-bridge":"^3.4.19|^4.1.8|~5.0",
101+
"symfony/phpunit-bridge":"4.4.x@dev",
102102
"symfony/security-acl":"~2.8|~3.0",
103103
"phpdocumentor/reflection-docblock":"^3.0|^4.0"
104104
},

‎src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespaceSymfony\Component\Debug\Tests\Exception;
1313

1414
usePHPUnit\Framework\TestCase;
15+
useSymfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1516
useSymfony\Component\Debug\Exception\FlattenException;
1617
useSymfony\Component\HttpFoundation\Exception\SuspiciousOperationException;
1718
useSymfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
@@ -31,6 +32,8 @@
3132

3233
class FlattenExceptionTestextends TestCase
3334
{
35+
use ForwardCompatTestTrait;
36+
3437
publicfunctiontestStatusCode()
3538
{
3639
$flattened = FlattenException::create(new \RuntimeException(),403);
@@ -256,7 +259,7 @@ function () {},
256259

257260
// assertEquals() does not like NAN values.
258261
$this->assertEquals($array[$i][0],'float');
259-
$this->assertTrue(is_nan($array[$i++][1]));
262+
$this->assertNan($array[$i++][1]);
260263
}
261264

262265
publicfunctiontestRecursionInArguments()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp