updated-packages
This commit is contained in:
13
vendor/sebastian/diff/tests/ChunkTest.php
vendored
13
vendor/sebastian/diff/tests/ChunkTest.php
vendored
@@ -27,6 +27,11 @@ final class ChunkTest extends TestCase
|
||||
$this->chunk = new Chunk;
|
||||
}
|
||||
|
||||
public function testHasInitiallyNoLines(): void
|
||||
{
|
||||
$this->assertSame([], $this->chunk->getLines());
|
||||
}
|
||||
|
||||
public function testCanBeCreatedWithoutArguments(): void
|
||||
{
|
||||
$this->assertInstanceOf(Chunk::class, $this->chunk);
|
||||
@@ -59,10 +64,10 @@ final class ChunkTest extends TestCase
|
||||
|
||||
public function testLinesCanBeSet(): void
|
||||
{
|
||||
$this->assertSame([], $this->chunk->getLines());
|
||||
$lines = [new Line(Line::ADDED, 'added'), new Line(Line::REMOVED, 'removed')];
|
||||
|
||||
$testValue = ['line0', 'line1'];
|
||||
$this->chunk->setLines($testValue);
|
||||
$this->assertSame($testValue, $this->chunk->getLines());
|
||||
$this->chunk->setLines($lines);
|
||||
|
||||
$this->assertSame($lines, $this->chunk->getLines());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user