LineTest.php 942 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. }