Start your All-Access Pass to unlock this challenge
Suppose we have the following class:
class DinosaurHatcher
{
public function __construct(private LoggerInterface $logger)
{
}
public function getProgressTowardsHatching(): int
{
// ...
}
public function warmEgg(): void
{
// ...
}
}
In a test for a different class, we decide to mock this:
$hatcher = $this->createMock(DinosaurHatcher::class);
What will happen if we call $hatcher->getProgressTowardsHatching()
or $hatcher->warmEgg()
?