Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Dec 2013 at 04:12 UTC
Updated:
29 Jul 2014 at 23:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mile23Le Patch.
Note that this test results in 100% code coverage, even though it shouldn't.
The bit at the end of Variable::export() that adds the prefix is always run, due to the way the $prefix default is set.
It should either set $prefix to NULL, or just always run str_replace() which is what's happening anyway.
Comment #2
ParisLiakos commentedlooks good, thanks for moving this here
lets just move those inline comments to a separate line and its good to go
Comment #3
mile23Moved the comments, plus a few other superficial coding standards changes.
Comment #4
ParisLiakos commentedthanks!
Comment #5
alexpottUnicode?
And can we get some @covers annotations too?
This is never used.
Comment #6
mile23How's that?
Comment #7
mile23Comment #8
dawehnerThis class does not exists.
Comment #9
mile23Doh! :-)
Changed to \Drupal\Component\Utility\Variable
Comment #12
mile23Removed getInfo(), changed non-stdClass object to be a locally-defined class in order to avoid dependency on PHPUnit's mocking system, changed @covers to reflect current standards.
Comment #13
dawehnerfor what? :)
Comment #14
mile23Ewps.
Improved docs, renamed test class to be more obvious.
Comment #15
dawehnerCool, thank you
Comment #16
alexpottCommitted 55240a0 and pushed to 8.x. Thanks!