Skip to content

Commit

Permalink
Revert "Add explicit check for preg_error"
Browse files Browse the repository at this point in the history
This reverts commit 0cfa913.
  • Loading branch information
westonruter committed Mar 31, 2021
1 parent 488b3bf commit b222c5d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/php/validation/test-class-amp-validation-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2194,7 +2194,6 @@ public function test_validate_url( $validation_errors, $after_matter ) {

add_filter( 'pre_http_request', $filter, 10, 3 );
$r = AMP_Validation_Manager::validate_url( $validated_url );
$this->assertEquals( PREG_NO_ERROR, preg_last_error(), 'Expected no preg error. An error of 2 means PREG_BACKTRACK_LIMIT_ERROR.' );
$this->assertInternalType( 'array', $r );
$this->assertEquals( $validation_errors, wp_list_pluck( $r['results'], 'error' ) );
$this->assertEquals( $validated_url, $r['url'] );
Expand Down

0 comments on commit b222c5d

Please sign in to comment.