()
| 689 | |
| 690 | #[test] |
| 691 | fn strategy_one_explicit_one_disabled() { |
| 692 | let config = FormattingConfig { |
| 693 | pint: None, |
| 694 | php_cs_fixer: Some("/usr/bin/php-cs-fixer".to_string()), |
| 695 | phpcbf: Some(String::new()), |
| 696 | timeout: None, |
| 697 | }; |
| 698 | let strategy = resolve_strategy(None, &config, None, None); |
| 699 | match &strategy { |
| 700 | FormattingStrategy::External(tools) => { |
| 701 | assert_eq!(tools.len(), 1); |
| 702 | assert_eq!(tools[0].name, "php-cs-fixer"); |
| 703 | } |
| 704 | other => panic!("Expected External, got {:?}", other), |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | #[test] |
| 709 | fn strategy_require_dev_php_cs_fixer() { |
nothing calls this directly
no test coverage detected