Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "^5|^6|^7|^8|^9|^10",
"phpunit/phpunit": "^5|^6|^7|^8|^9|^10|^11",
"friendsofphp/php-cs-fixer": "^2|^3"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions tests/AlignFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ class AlignFormatterTest extends TestCase
* @dataProvider getCases
*
* @param mixed $data
* @param mixed $expectResult
* @param mixed $expected
*/
public function testCorrectBuilding($data, $expectResult)
public function testCorrectBuilding($data, $expected)
{
$builder = new ArrayToTextTable($data);
$builder->applyFormatter(new AlignFormatter(['center' => 'center', 'right' => 'right']));

$this->assertEquals($expectResult, $builder->render());
$this->assertEquals($expected, $builder->render());
}

public static function getCases()
Expand Down
6 changes: 3 additions & 3 deletions tests/ColorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class ColorTest extends TestCase
* @dataProvider getCases
*
* @param mixed $data
* @param mixed $expectResult
* @param mixed $expected
*/
public function testCorrectBuilding($data, $expectResult)
public function testCorrectBuilding($data, $expected)
{
$builder = new ArrayToTextTable($data);
$builder->applyFormatter(new ColorFormatter([
Expand All @@ -28,7 +28,7 @@ public function testCorrectBuilding($data, $expectResult)
}
]));

$this->assertEquals($expectResult, $builder->render());
$this->assertEquals($expected, $builder->render());
}

public static function getCases()
Expand Down
6 changes: 3 additions & 3 deletions tests/CombinedAlignSprintfFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class CombinedAlignSprintfFormatterTest extends TestCase
* @dataProvider getCases
*
* @param mixed $data
* @param mixed $expectResult
* @param mixed $expected
*/
public function testCorrectBuilding($data, $expectResult)
public function testCorrectBuilding($data, $expected)
{
$builder = new ArrayToTextTable($data);
$builder->applyFormatter(new AlignFormatter(['center' => 'center', 'right' => 'right']));
$builder->applyFormatter(new SprintfFormatter(['right' => '%01.3f']));

$this->assertEquals($expectResult, $builder->render());
$this->assertEquals($expected, $builder->render());
}

public static function getCases()
Expand Down
6 changes: 3 additions & 3 deletions tests/SimpleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ class SimpleTest extends TestCase
* @dataProvider getCases
*
* @param mixed $data
* @param mixed $expectResult
* @param mixed $expected
*/
public function testCorrectBuilding($data, $expectResult)
public function testCorrectBuilding($data, $expected)
{
$builder = new ArrayToTextTable($data);

$this->assertEquals($expectResult, $builder->render());
$this->assertEquals($expected, $builder->render());
}

public static function getCases()
Expand Down