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 11namespace SebastianBergmann\Diff; 12 13use PHPUnit\Framework\TestCase; 14 15/** 16 * @covers SebastianBergmann\Diff\Line 17 */ 18class LineTest extends TestCase 19{ 20 /** 21 * @var Line 22 */ 23 private $line; 24 25 protected function setUp() 26 { 27 $this->line = new Line; 28 } 29 30 public function testCanBeCreatedWithoutArguments() 31 { 32 $this->assertInstanceOf('SebastianBergmann\Diff\Line', $this->line); 33 } 34 35 public function testTypeCanBeRetrieved() 36 { 37 $this->assertEquals(Line::UNCHANGED, $this->line->getType()); 38 } 39 40 public function testContentCanBeRetrieved() 41 { 42 $this->assertEquals('', $this->line->getContent()); 43 } 44} 45