shouldReceive('size')->andReturn($size); $this->assertInstanceOf(SizeInterface::class, $modifier->getCropSize($image)); } }