Changeset 65170
- Timestamp:
- 11/01/2026 05:34:03 PM (43 hours ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 3 added
- 1 edited
-
date/theDate.php (modified) (2 diffs)
-
general/deleteGetCalendarCache.php (added)
-
general/theDateXml.php (added)
-
general/theWeekday.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/theDate.php
r56971 r65170 129 129 /** 130 130 * @ticket 47354 131 * @ticket 65819 131 132 */ 132 133 public function test_the_weekday_date() { … … 153 154 the_weekday_date( 'before ', ' after' ); 154 155 $this->assertSame( 'before Wednesday after', ob_get_clean() ); 156 157 // Consecutive call on the same day should be suppressed. 158 ob_start(); 159 the_weekday_date( 'before ', ' after' ); 160 $this->assertSame( '', ob_get_clean() ); 161 162 add_filter( 163 'the_weekday_date', 164 static function ( $output ) { 165 return 'Filtered ' . $output; 166 } 167 ); 168 169 ob_start(); 170 $GLOBALS['currentday'] = '19.09.15'; 171 $GLOBALS['previousweekday'] = '18.09.15'; 172 the_weekday_date(); 173 $this->assertSame( 'Filtered Wednesday', ob_get_clean() ); 155 174 } 156 175 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)