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

[Console] Add placeholder for line number in console exception fixtures#25794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@pierredup
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

Add placeholders for exception line numbers for tests inApplicationTest to make the tests more flexible

@pierredup
Copy link
ContributorAuthor

Travis HHVM failure seems unrelated

Copy link
Member

@chalasrchalasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I would have just changedassertStringEqualsFile toassertStringMatchesFormatFile(), replacing the line number by%d in fixtures (https://phpunit.de/manual/current/en/appendixes.assertions.html#appendixes.assertions.assertStringMatchesFormatFile). Feel free to update if you want, fine for me as is. Thanks for taking care

@pierredup
Copy link
ContributorAuthor

I thinkassertStringMatchesFormatFile is cleaner as it's not necessary to track the exception line anymore. I have implemented the suggested changes

@chalasr
Copy link
Member

Thank you@pierredup.

chalasr pushed a commit that referenced this pull requestJan 15, 2018
…eption fixtures (pierredup)This PR was squashed before being merged into the 3.4 branch (closes#25794).Discussion----------[Console] Add placeholder for line number in console exception fixtures| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Add placeholders for exception line numbers for tests in `ApplicationTest` to make the tests more flexibleCommits-------686d4f7 [Console] Add placeholder for line number in console exception fixtures
@pierreduppierredup deleted the console-exceptions-lineno branchJanuary 15, 2018 16:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@pierredup@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp