Release 2.12 (#4609)
This commit is contained in:
@@ -49,7 +49,7 @@ class DurationStringToSecondsTransformerTest extends TestCase
|
||||
/**
|
||||
* @dataProvider getValidTestDataTransform
|
||||
*/
|
||||
public function testTransform($expected, $transform)
|
||||
public function testTransform($expected, $transform): void
|
||||
{
|
||||
$this->assertEquals($expected, $this->sut->transform($transform));
|
||||
}
|
||||
@@ -57,7 +57,7 @@ class DurationStringToSecondsTransformerTest extends TestCase
|
||||
/**
|
||||
* @dataProvider getInvalidTestDataTransform
|
||||
*/
|
||||
public function testInvalidTransformThrowsException($transform)
|
||||
public function testInvalidTransformThrowsException($transform): void
|
||||
{
|
||||
$this->expectException(TransformationFailedException::class);
|
||||
|
||||
@@ -89,7 +89,7 @@ class DurationStringToSecondsTransformerTest extends TestCase
|
||||
/**
|
||||
* @dataProvider getValidTestDataReverseTransform
|
||||
*/
|
||||
public function testReverseTransform($transform, $expected)
|
||||
public function testReverseTransform($transform, $expected): void
|
||||
{
|
||||
$this->assertEquals($expected, $this->sut->reverseTransform($transform));
|
||||
}
|
||||
@@ -97,7 +97,7 @@ class DurationStringToSecondsTransformerTest extends TestCase
|
||||
/**
|
||||
* @dataProvider getInvalidTestDataReverseTransform
|
||||
*/
|
||||
public function testInvalidReverseTransformThrowsException($transform)
|
||||
public function testInvalidReverseTransformThrowsException($transform): void
|
||||
{
|
||||
$this->expectException(TransformationFailedException::class);
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ use PHPUnit\Framework\TestCase;
|
||||
*/
|
||||
class SearchTermTransformerTest extends TestCase
|
||||
{
|
||||
public function testTransform()
|
||||
public function testTransform(): void
|
||||
{
|
||||
$sut = new SearchTermTransformer();
|
||||
|
||||
@@ -34,7 +34,7 @@ class SearchTermTransformerTest extends TestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function testReverseTransform()
|
||||
public function testReverseTransform(): void
|
||||
{
|
||||
$sut = new SearchTermTransformer();
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ use PHPUnit\Framework\TestCase;
|
||||
*/
|
||||
class TagArrayToStringTransformerTest extends TestCase
|
||||
{
|
||||
public function testTransform()
|
||||
public function testTransform(): void
|
||||
{
|
||||
$results = [
|
||||
(new Tag())->setName('foo'),
|
||||
@@ -38,7 +38,7 @@ class TagArrayToStringTransformerTest extends TestCase
|
||||
$this->assertEquals('foo, bar', $actual);
|
||||
}
|
||||
|
||||
public function testReverseTransform()
|
||||
public function testReverseTransform(): void
|
||||
{
|
||||
$results = [
|
||||
(new Tag())->setName('foo'),
|
||||
|
||||
Reference in New Issue
Block a user