We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 568-575 (lines=8) @@ | ||
| 565 | * @param int $policy All caps policy. |
|
| 566 | * @param bool $result Expected result. |
|
| 567 | */ |
|
| 568 | public function test_conforms_to_caps_policy( $value, $type, $policy, $result ) { |
|
| 569 | $parser = $this->parser; |
|
| 570 | $parser->load( $value ); // Ensure that encoding can be determined. |
|
| 571 | ||
| 572 | $token = new Token( $value, $type ); |
|
| 573 | ||
| 574 | $this->assertSame( $result, $this->invokeMethod( $parser, 'conforms_to_caps_policy', [ $token, $policy ] ) ); |
|
| 575 | } |
|
| 576 | ||
| 577 | /** |
|
| 578 | * Providate data for testing conforms_to_compounds_policy. |
|
| @@ 616-623 (lines=8) @@ | ||
| 613 | * @param int $policy Compounds policy. |
|
| 614 | * @param bool $result Expected result. |
|
| 615 | */ |
|
| 616 | public function test_conforms_to_compounds_policy( $value, $type, $policy, $result ) { |
|
| 617 | $parser = $this->parser; |
|
| 618 | $parser->load( $value ); // Ensure that encoding can be determined. |
|
| 619 | ||
| 620 | $token = new Token( $value, $type ); |
|
| 621 | ||
| 622 | $this->assertSame( $result, $this->invokeMethod( $parser, 'conforms_to_compounds_policy', [ $token, $policy ] ) ); |
|
| 623 | } |
|
| 624 | ||
| 625 | /** |
|
| 626 | * Test get_words. |
|