Skip to content

Commit

Permalink
Make adjustment to test.
Browse files Browse the repository at this point in the history
  • Loading branch information
desrosj committed Nov 11, 2024
1 parent 30b5e24 commit ee24734
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/phpunit/tests/feed/fetchFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public function test_empty_charset_does_not_trigger_fatal_error() {
add_filter( 'pre_option_blog_charset', '__return_empty_string', 20 );

$feed = fetch_feed( 'https://wordpress.org/news/feed/' );

foreach( $feed->get_items( 0, 1 ) as $item ) {

Check failure on line 27 in tests/phpunit/tests/feed/fetchFeed.php

View workflow job for this annotation

GitHub Actions / PHP coding standards / Run coding standards checks

Space after opening control structure is required

Check failure on line 27 in tests/phpunit/tests/feed/fetchFeed.php

View workflow job for this annotation

GitHub Actions / PHP coding standards / Run coding standards checks

No space before opening parenthesis is prohibited

Check failure on line 27 in tests/phpunit/tests/feed/fetchFeed.php

View workflow job for this annotation

GitHub Actions / PHP coding standards / Run coding standards checks

Expected 1 space after FOREACH keyword; 0 found
$content = $item->get_content();
}
}

public function mocked_rss_response() {
Expand Down

0 comments on commit ee24734

Please sign in to comment.