Skip to content

Commit ec1aa5a

Browse files
committed
Drop setIndentationLevel() again
1 parent 5d53656 commit ec1aa5a

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

src/OutputFormat.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -722,16 +722,6 @@ public function getIndentationLevel(): int
722722
return $this->iIndentationLevel;
723723
}
724724

725-
/**
726-
* @return $this fluent interface
727-
*/
728-
public function setIndentationLevel(int $indentationLevel): self
729-
{
730-
$this->iIndentationLevel = $indentationLevel;
731-
732-
return $this;
733-
}
734-
735725
/**
736726
* @return $this fluent interface
737727
*/

tests/Unit/OutputFormatTest.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -721,25 +721,6 @@ public function getIndentationLevelInitiallyReturnsZero(): void
721721
self::assertSame(0, $this->subject->getIndentationLevel());
722722
}
723723

724-
/**
725-
* @test
726-
*/
727-
public function setIndentationLevelSetsIndentationLevel(): void
728-
{
729-
$value = 4;
730-
$this->subject->setIndentationLevel($value);
731-
732-
self::assertSame($value, $this->subject->getIndentationLevel());
733-
}
734-
735-
/**
736-
* @test
737-
*/
738-
public function setIndentationLevelProvidesFluentInterface(): void
739-
{
740-
self::assertSame($this->subject, $this->subject->setIndentationLevel(4));
741-
}
742-
743724
/**
744725
* @test
745726
*/
@@ -850,8 +831,7 @@ public function nextLevelReturnsDifferentInstance(): void
850831
*/
851832
public function nextLevelReturnsInstanceWithIndentationLevelIncreasedByOne(): void
852833
{
853-
$originalIndentationLevel = 2;
854-
$this->subject->setIndentationLevel($originalIndentationLevel);
834+
$originalIndentationLevel = $this->subject->getIndentationLevel();
855835

856836
self::assertSame($originalIndentationLevel + 1, $this->subject->nextLevel()->getIndentationLevel());
857837
}

0 commit comments

Comments
 (0)