Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
phpunit
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Dec 2013 at 20:40 UTC
Updated:
29 Jul 2014 at 23:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
traviscarden commentedMaybe something like this. This would result in an exception message like the following:
Comment #2
traviscarden commentedWait, raw string concatenation? What was I doing? New patch.
Comment #3
dawehnerNice idea!
Comment #4
chx commentedWe learn something every day. I never knew
staticwas available in such a way.Comment #5
webchickLet's use String::format() here instead of format_string().
Comment #6
internetdevels commentedNew try.
Comment #7
xanoLet's make clear what method we are actually talking about. Not everybody understands OOP as well as we do. I also updated Simpletest's TestBase, which throws an identical exception for the same reason.
Comment #8
headli commentedI've proved both exception declarations, which looks well for me. The exception message is built in the same way on both declarations.
Comment #9
dawehnerI really like this!
Comment #10
alexpottCommitted 6b393bb and pushed to 8.x. Thanks!