Skip to content

Commit

Permalink
Remove debugging code.
Browse files Browse the repository at this point in the history
Gets rid of several var_dump() usages that seem to be left over from debugging.
  • Loading branch information
philipjohn committed Apr 26, 2018
1 parent fc66b94 commit 9a6d076
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/amp-tag-and-attribute-sanitizer-private-methods-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ public function test_validate_attr_spec_rules( $data, $expected ) {

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $source );
var_dump( $data );
}

$this->assertEquals( $expected, $got );
Expand Down Expand Up @@ -568,7 +567,6 @@ public function test_is_allowed_attribute( $data, $expected ) {

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $source );
var_dump( $data );
}

$this->assertEquals( $expected, $got );
Expand Down Expand Up @@ -664,7 +662,6 @@ public function test_remove_node( $data, $expected ) {

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $data['source'] );
var_dump( $data );
printf( 'got = %s' .PHP_EOL, $got );
}

Expand Down Expand Up @@ -805,7 +802,6 @@ public function test_replace_node_with_children( $data, $expected ) {

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $data['source'] );
var_dump( $data );
printf( 'got = %s' .PHP_EOL, $got );
}

Expand Down Expand Up @@ -867,7 +863,6 @@ public function test_get_ancestor_with_tag_name( $data, $expected ) {

if ( $ancestor_node != $got ) {
printf( 'using source: %s' . PHP_EOL, $data['source'] );
var_dump( $data );
}

$this->assertEquals( $ancestor_node, $got );
Expand Down Expand Up @@ -1073,7 +1068,6 @@ public function test_validate_attr_spec_list_for_node( $data, $expected ) {

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $data['source'] );
var_dump( $data );
}

$this->assertEquals( $expected, $got );
Expand Down Expand Up @@ -1200,7 +1194,6 @@ public function test_check_attr_spec_rule_value( $data, $expected ) {

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $data['source'] );
var_dump( $data );
}

$this->assertEquals( $expected, $got );
Expand Down Expand Up @@ -1352,7 +1345,6 @@ public function test_check_attr_spec_rule_value_casei( $data, $expected ) {

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $data['source'] );
var_dump( $data );
}

$this->assertEquals( $expected, $got );
Expand Down Expand Up @@ -1446,7 +1438,6 @@ public function test_check_attr_spec_rule_blacklisted_value_regex( $data, $expec

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $data['source'] );
var_dump( $data );
}

$this->assertEquals( $expected, $got );
Expand Down Expand Up @@ -1581,7 +1572,6 @@ public function test_check_attr_spec_rule_allowed_protocol( $data, $expected ) {

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $data['source'] );
var_dump( $data );
}

$this->assertEquals( $expected, $got );
Expand Down Expand Up @@ -1730,7 +1720,6 @@ public function test_check_attr_spec_rule_disallowed_relative( $data, $expected

if ( $expected != $got ) {
printf( 'using source: %s' . PHP_EOL, $data['source'] );
var_dump( $data );
}

$this->assertEquals( $expected, $got );
Expand Down

0 comments on commit 9a6d076

Please sign in to comment.