# @todo FIXME:
# - those got copy pasted, we can probably make them cleaner
# - tests are lacking useful messages
# @todo FIXME:
# - those got copy pasted, we can probably make them cleaner
# - tests are lacking useful messages
/** assertion helper expecting a magic output which is zero padded */
public function assertZeroPadded( $magic, $value ) {
/** assertion helper expecting a magic output which is zero padded */
public function assertZeroPadded( $magic, $value ) {
* Main assertion helper for magic variables padding
* @param string $magic Magic variable name
* @param mixed $value Month or day
* Main assertion helper for magic variables padding
* @param string $magic Magic variable name
* @param mixed $value Month or day
*/
private function assertMagicPadding( $magic, $value, $format ) {
# Initialize parser timestamp as year 2010 at 12h34 56s.
*/
private function assertMagicPadding( $magic, $value, $format ) {
# Initialize parser timestamp as year 2010 at 12h34 56s.
# format expectation and test it
$expected = sprintf( $format, $value );
# format expectation and test it
$expected = sprintf( $format, $value );