Changeset 63936
- Timestamp:
- 09/25/2026 03:31:07 PM (5 days ago)
- Location:
- trunk/tests
- Files:
-
- 5 edited
-
phpstan/GlobalDocBlockVisitor.php (modified) (1 diff)
-
phpunit/tests/comment/wpNotifyNoteMentions.php (modified) (1 diff)
-
phpunit/tests/dependencies/scripts.php (modified) (1 diff)
-
phpunit/tests/post/getPost.php (modified) (1 diff)
-
phpunit/tests/privacy/wpPrivacyResetPolicyPageForPost.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpstan/GlobalDocBlockVisitor.php
r62642 r63936 166 166 foreach ( $matches as $match ) { 167 167 $type = preg_replace( '/\s+/', '', $match['type'] ); 168 assert( is_string( $type ) && '' !== $type );168 assert( is_string( $type ) && '' !== $type, 'Collapsing whitespace in a non-empty type must yield a non-empty string.' ); 169 169 $map[ $match['variable'] ] = $type; 170 170 } -
trunk/tests/phpunit/tests/comment/wpNotifyNoteMentions.php
r63924 r63936 122 122 ) 123 123 ); 124 assert( $comment instanceof WP_Comment );124 $this->assertInstanceOf( WP_Comment::class, $comment ); 125 125 return $comment; 126 126 } -
trunk/tests/phpunit/tests/dependencies/scripts.php
r63934 r63936 102 102 $find_id_tag_processor->next_token(); 103 103 $id = $find_id_tag_processor->get_attribute( 'id' ); 104 assert( is_string( $id ));104 $this->assertIsString( $id, 'The expected SCRIPT tag must have an ID attribute.' ); 105 105 106 106 $processor = ( new class('', WP_HTML_Processor::CONSTRUCTOR_UNLOCK_CODE ) extends WP_HTML_Processor { 107 107 public function get_script_html() { 108 assert( 'SCRIPT' === $this->get_tag() );108 assert( 'SCRIPT' === $this->get_tag(), 'The processor must be paused on a SCRIPT tag.' ); 109 109 $this->set_bookmark( 'here' ); 110 110 $span = $this->bookmarks['_here']; -
trunk/tests/phpunit/tests/post/getPost.php
r61789 r63936 14 14 parent::set_up_before_class(); 15 15 $post_id = self::factory()->post->create(); 16 assert( is_int( $post_id ));16 self::assertIsInt( $post_id ); 17 17 self::$post_id = $post_id; 18 18 -
trunk/tests/phpunit/tests/privacy/wpPrivacyResetPolicyPageForPost.php
r63924 r63936 22 22 23 23 $page_id = self::factory()->post->create( array( 'post_type' => 'page' ) ); 24 assert( is_int( $page_id ));24 $this->assertIsInt( $page_id ); 25 25 $this->policy_page_id = $page_id; 26 26 update_option( 'wp_page_for_privacy_policy', $this->policy_page_id );
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)