PadArrayTest.php 484 B

12345678910111213141516171819202122
  1. <?php
  2. namespace League\CLImate\Tests;
  3. class PadArrayTest extends TestBase
  4. {
  5. /** @test */
  6. public function it_can_pad_with_multiple_characters()
  7. {
  8. $padding = $this->cli->padArray([
  9. "field-name-1" => "one",
  10. "field-name-2" => "two",
  11. ]);
  12. $this->output->shouldReceive('sameLine');
  13. $this->shouldWrite('Pad me.-.-');
  14. $this->shouldWrite(' extra');
  15. $padding->label('Pad me')->result('extra');
  16. }
  17. }