X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsebastian%2Fdiff%2Ftests%2FLineTest.php;fp=vendor%2Fsebastian%2Fdiff%2Ftests%2FLineTest.php;h=6fd8c167645627ffc7a9f8564d0d1ee6fbdd4076;hp=0000000000000000000000000000000000000000;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/sebastian/diff/tests/LineTest.php b/vendor/sebastian/diff/tests/LineTest.php new file mode 100644 index 000000000..6fd8c1676 --- /dev/null +++ b/vendor/sebastian/diff/tests/LineTest.php @@ -0,0 +1,44 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace SebastianBergmann\Diff; + +use PHPUnit\Framework\TestCase; + +/** + * @covers SebastianBergmann\Diff\Line + */ +class LineTest extends TestCase +{ + /** + * @var Line + */ + private $line; + + protected function setUp() + { + $this->line = new Line; + } + + public function testCanBeCreatedWithoutArguments() + { + $this->assertInstanceOf('SebastianBergmann\Diff\Line', $this->line); + } + + public function testTypeCanBeRetrieved() + { + $this->assertEquals(Line::UNCHANGED, $this->line->getType()); + } + + public function testContentCanBeRetrieved() + { + $this->assertEquals('', $this->line->getContent()); + } +}