LineTest.php 909 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  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. class LineTest extends TestCase
  16. {
  17. /**
  18. * @var Line
  19. */
  20. private $line;
  21. protected function setUp()
  22. {
  23. $this->line = new Line;
  24. }
  25. public function testCanBeCreatedWithoutArguments()
  26. {
  27. $this->assertInstanceOf('SebastianBergmann\Diff\Line', $this->line);
  28. }
  29. public function testTypeCanBeRetrieved()
  30. {
  31. $this->assertEquals(Line::UNCHANGED, $this->line->getType());
  32. }
  33. public function testContentCanBeRetrieved()
  34. {
  35. $this->assertEquals('', $this->line->getContent());
  36. }
  37. }