LineTest.php 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of sebastian/diff.
  4. *
  5. * (c) Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace SebastianBergmann\Diff;
  11. use PHPUnit\Framework\TestCase;
  12. /**
  13. * @covers SebastianBergmann\Diff\Line
  14. */
  15. final class LineTest extends TestCase
  16. {
  17. /**
  18. * @var Line
  19. */
  20. private $line;
  21. protected function setUp(): void
  22. {
  23. $this->line = new Line;
  24. }
  25. public function testCanBeCreatedWithoutArguments(): void
  26. {
  27. $this->assertInstanceOf(Line::class, $this->line);
  28. }
  29. public function testTypeCanBeRetrieved(): void
  30. {
  31. $this->assertSame(Line::UNCHANGED, $this->line->getType());
  32. }
  33. public function testContentCanBeRetrieved(): void
  34. {
  35. $this->assertSame('', $this->line->getContent());
  36. }
  37. }