PHP Classes

File: vendor/sebastian/diff/tests/LineTest.php

Recommend this page to a friend!
  Classes of Renato Lucena   PHP Pokemon Script   vendor/sebastian/diff/tests/LineTest.php   Download  
File: vendor/sebastian/diff/tests/LineTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 6 years ago
Size: 909 bytes
 

Contents

Class file image Download
<?php
/*
 * This file is part of sebastian/diff.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * 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());
    }
}