Skip to content

Commit

Permalink
[+]: use "assertSame" instead of "assertEquals"
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Moelleken committed Jul 20, 2016
1 parent 4c5261c commit 1793304
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/HooksFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testFilter()
return '<b>' . $content . '</b>';
});

self::assertEquals('<b>Hello world</b>', $this->hooks->apply_filters('foo', 'Hello world'));
self::assertSame('<b>Hello world</b>', $this->hooks->apply_filters('foo', 'Hello world'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/HooksShortcodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function testShortcode()
$default_content = '[youtube id=iCUV3iv9xOs color=white theme=light]';
$parsed_content = $hooks->do_shortcode($default_content);

self::assertEquals('<iframe type="text/html" frameborder=0 width=640 height=390 src="http://www.youtube.com/embed/iCUV3iv9xOs?color=white&theme=light&autoplay=0&controls=1&start=0" />', $parsed_content);
self::assertSame('<iframe type="text/html" frameborder=0 width=640 height=390 src="http://www.youtube.com/embed/iCUV3iv9xOs?color=white&theme=light&autoplay=0&controls=1&start=0" />', $parsed_content);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/HooksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testHooks()

$lall = $this->hooks->apply_filters('test', '');

self::assertEquals($lall, $this->testString_1 . $this->testString_2);
self::assertSame($lall, $this->testString_1 . $this->testString_2);
}

/**
Expand Down

0 comments on commit 1793304

Please sign in to comment.