Changeset 48937 for trunk/tests/phpunit/tests/formatting/EscXml.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/EscXml.php
r48576 r48937 15 15 public function test_esc_xml_basics( $source, $expected ) { 16 16 $actual = esc_xml( $source ); 17 $this->assert Equals( $expected, $actual );17 $this->assertSame( $expected, $actual ); 18 18 } 19 19 … … 50 50 $expected = 'penn & teller & at&t'; 51 51 $actual = esc_xml( $source ); 52 $this->assert Equals( $expected, $actual );52 $this->assertSame( $expected, $actual ); 53 53 } 54 54 … … 57 57 $expected = 'this > that < that <randomhtml />'; 58 58 $actual = esc_xml( $source ); 59 $this->assert Equals( $expected, $actual );59 $this->assertSame( $expected, $actual ); 60 60 } 61 61 … … 64 64 $expected = 'this & is a … followed by › and more and a &nonexistent; entity'; 65 65 $actual = esc_xml( $source ); 66 $this->assert Equals( $expected, $actual );66 $this->assertSame( $expected, $actual ); 67 67 } 68 68 … … 72 72 $expected = '& £ " &'; 73 73 $actual = esc_xml( $source ); 74 $this->assert Equals( $expected, $actual );74 $this->assertSame( $expected, $actual ); 75 75 } 76 76 … … 85 85 public function test_ignores_cdata_sections( $source, $expected ) { 86 86 $actual = esc_xml( $source ); 87 $this->assert Equals( $expected, $actual );87 $this->assertSame( $expected, $actual ); 88 88 } 89 89
Note: See TracChangeset
for help on using the changeset viewer.