We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 409-435 (lines=27) @@ | ||
| 406 | * |
|
| 407 | * @uses PHP_Typography\Settings\Quote_Style::get_styled_quotes |
|
| 408 | */ |
|
| 409 | public function test_set_smart_quotes_primary() { |
|
| 410 | $s = $this->settings; |
|
| 411 | ||
| 412 | $quote_styles = [ |
|
| 413 | 'doubleCurled', |
|
| 414 | 'doubleCurledReversed', |
|
| 415 | 'doubleLow9', |
|
| 416 | 'doubleLow9Reversed', |
|
| 417 | 'singleCurled', |
|
| 418 | 'singleCurledReversed', |
|
| 419 | 'singleLow9', |
|
| 420 | 'singleLow9Reversed', |
|
| 421 | 'doubleGuillemetsFrench', |
|
| 422 | 'doubleGuillemets', |
|
| 423 | 'doubleGuillemetsReversed', |
|
| 424 | 'singleGuillemets', |
|
| 425 | 'singleGuillemetsReversed', |
|
| 426 | 'cornerBrackets', |
|
| 427 | 'whiteCornerBracket', |
|
| 428 | ]; |
|
| 429 | ||
| 430 | foreach ( $quote_styles as $style ) { |
|
| 431 | $s->set_smart_quotes_primary( $style ); |
|
| 432 | ||
| 433 | $this->assertSmartQuotesStyle( $style, $s->primary_quote_style()->open(), $s->primary_quote_style()->close() ); |
|
| 434 | } |
|
| 435 | } |
|
| 436 | ||
| 437 | /** |
|
| 438 | * Tests set_smart_quotes_primary with an invalid input. |
|
| @@ 485-510 (lines=26) @@ | ||
| 482 | * |
|
| 483 | * @uses PHP_Typography\Settings\Quote_Style::get_styled_quotes |
|
| 484 | */ |
|
| 485 | public function test_set_smart_quotes_secondary() { |
|
| 486 | $s = $this->settings; |
|
| 487 | $quote_styles = [ |
|
| 488 | 'doubleCurled', |
|
| 489 | 'doubleCurledReversed', |
|
| 490 | 'doubleLow9', |
|
| 491 | 'doubleLow9Reversed', |
|
| 492 | 'singleCurled', |
|
| 493 | 'singleCurledReversed', |
|
| 494 | 'singleLow9', |
|
| 495 | 'singleLow9Reversed', |
|
| 496 | 'doubleGuillemetsFrench', |
|
| 497 | 'doubleGuillemets', |
|
| 498 | 'doubleGuillemetsReversed', |
|
| 499 | 'singleGuillemets', |
|
| 500 | 'singleGuillemetsReversed', |
|
| 501 | 'cornerBrackets', |
|
| 502 | 'whiteCornerBracket', |
|
| 503 | ]; |
|
| 504 | ||
| 505 | foreach ( $quote_styles as $style ) { |
|
| 506 | $s->set_smart_quotes_secondary( $style ); |
|
| 507 | ||
| 508 | $this->assertSmartQuotesStyle( $style, $s->secondary_quote_style()->open(), $s->secondary_quote_style()->close() ); |
|
| 509 | } |
|
| 510 | } |
|
| 511 | ||
| 512 | /** |
|
| 513 | * Tests set_smart_quotes_secondary with an invalid input. |
|