Skip to content

Commit

Permalink
expects->(self::any()) is the default, so not required to be specified
Browse files Browse the repository at this point in the history
Co-Authored-By: Grégoire Paris <postmaster@greg0ire.fr>
  • Loading branch information
goetas and greg0ire committed Mar 22, 2020
1 parent 0720fef commit 69801b4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected function setUp() : void

$this->classNameGenerator = $this->createMock(ClassNameGenerator::class);

$this->dependencyFactory->expects(self::any())
$this->dependencyFactory
->method('getClassNameGenerator')
->willReturn($this->classNameGenerator);

Expand All @@ -174,8 +174,7 @@ protected function setUp() : void
->method('getDiffGenerator')
->willReturn($this->migrationDiffGenerator);

$this->dependencyFactory->expects(self::any())
->method('getMigrationStatusCalculator')
$this->dependencyFactory->method('getMigrationStatusCalculator')
->willReturn($this->migrationStatusCalculator);

$this->diffCommand = new DiffCommand($this->dependencyFactory);
Expand Down

0 comments on commit 69801b4

Please sign in to comment.