Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #54 from janlam7/phpcs-tool
Browse files Browse the repository at this point in the history
Upgrade phpcs-tool to 9.0.0
  • Loading branch information
janlam7 authored Apr 20, 2022
2 parents 757f134 + 4693e75 commit f2ec23c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"symfony/process": "^4.3 || ^5.0"
},
"require-dev": {
"hostnet/phpcs-tool": "^8.3.3",
"hostnet/phpcs-tool": "^9.0.0",
"phpspec/prophecy-phpunit": "^2.0.1",
"phpunit/phpunit": "^9.5.5",
"symfony/framework-bundle": "^4.3 || ^5.0",
"symfony/yaml": "^4.3 || ^5.0",
"twig/twig": "^2.9.0||^3.0.0"
"twig/twig": "^3.0.0"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 0 additions & 3 deletions src/Command/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ public function __construct(ConfigInterface $config, ImportFinderInterface $find
$this->finder = $finder;
}

/**
* {@inheritdoc}
*/
protected function configure(): void
{
$this
Expand Down
6 changes: 4 additions & 2 deletions test/Command/CompileCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,14 @@ public function testExecuteVeryVerbose(): void
} else {
$formatter = $this->prophesize(OutputFormatterInterface::class);
$output->getFormatter()->willReturn($formatter->reveal());

}
$output->getVerbosity()->willReturn(OutputInterface::VERBOSITY_VERY_VERBOSE);
$output->writeln(CompileCommand::EXIT_MESSAGE)->shouldBeCalled();
$output->writeln('')->shouldBeCalled();
$output->writeln(' Asset Size Status ')->shouldBeCalled();

// Trailing and leading space change between Symfony versions
$output->writeln(Argument::containingString('Asset Size Status'))->shouldBeCalled();

$output->writeln(Argument::that(function (string $v) {
return preg_match('/Total time: \d+ms/i', $v);
}))->shouldBeCalled();
Expand Down

0 comments on commit f2ec23c

Please sign in to comment.