@@ 2353-2360 (lines=8) @@ | ||
2350 | /** |
|
2351 | * @dataProvider htmlEncodeProvider() |
|
2352 | */ |
|
2353 | public function testHtmlEncode($expected, $str, $flags = ENT_COMPAT, $encoding = null) |
|
2354 | { |
|
2355 | $stringy = S::create($str, $encoding); |
|
2356 | $result = $stringy->htmlEncode($flags); |
|
2357 | $this->assertStringy($result); |
|
2358 | $this->assertEquals($expected, $result); |
|
2359 | $this->assertEquals($str, $stringy); |
|
2360 | } |
|
2361 | ||
2362 | public function htmlEncodeProvider() |
|
2363 | { |
|
@@ 2376-2383 (lines=8) @@ | ||
2373 | /** |
|
2374 | * @dataProvider htmlDecodeProvider() |
|
2375 | */ |
|
2376 | public function testHtmlDecode($expected, $str, $flags = ENT_COMPAT, $encoding = null) |
|
2377 | { |
|
2378 | $stringy = S::create($str, $encoding); |
|
2379 | $result = $stringy->htmlDecode($flags); |
|
2380 | $this->assertStringy($result); |
|
2381 | $this->assertEquals($expected, $result); |
|
2382 | $this->assertEquals($str, $stringy); |
|
2383 | } |
|
2384 | ||
2385 | public function htmlDecodeProvider() |
|
2386 | { |