We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 2778-2790 (lines=13) @@ | ||
| 2775 | * |
|
| 2776 | * @covers ::get_html5_parser |
|
| 2777 | */ |
|
| 2778 | public function test_get_html5_parser() { |
|
| 2779 | ||
| 2780 | $this->assertAttributeEmpty( 'html5_parser', $this->typo ); |
|
| 2781 | ||
| 2782 | $parser1 = $this->typo->get_html5_parser(); |
|
| 2783 | $this->assertInstanceOf( '\Masterminds\HTML5', $parser1 ); |
|
| 2784 | ||
| 2785 | $parser2 = $this->typo->get_html5_parser(); |
|
| 2786 | $this->assertInstanceOf( '\Masterminds\HTML5', $parser2 ); |
|
| 2787 | ||
| 2788 | $this->assertSame( $parser1, $parser2 ); |
|
| 2789 | $this->assertAttributeInstanceOf( '\Masterminds\HTML5', 'html5_parser', $this->typo ); |
|
| 2790 | } |
|
| 2791 | ||
| 2792 | /** |
|
| 2793 | * Test parse_html. |
|
| @@ 80-91 (lines=12) @@ | ||
| 77 | * |
|
| 78 | * @uses PHP_Typography\Text_Parser::__construct |
|
| 79 | */ |
|
| 80 | public function test_get_text_parser() { |
|
| 81 | $this->assertAttributeEmpty( 'text_parser', $this->fix ); |
|
| 82 | ||
| 83 | $parser1 = $this->fix->get_text_parser(); |
|
| 84 | $this->assertInstanceOf( '\PHP_Typography\Text_Parser', $parser1 ); |
|
| 85 | ||
| 86 | $parser2 = $this->fix->get_text_parser(); |
|
| 87 | $this->assertInstanceOf( '\PHP_Typography\Text_Parser', $parser2 ); |
|
| 88 | ||
| 89 | $this->assertSame( $parser1, $parser2 ); |
|
| 90 | $this->assertAttributeInstanceOf( '\PHP_Typography\Text_Parser', 'text_parser', $this->fix ); |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * Test apply. |
|