mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-24 03:49:10 -04:00
ALPHA 3.0.2a
This commit is contained in:
@@ -12,17 +12,20 @@ namespace SebastianBergmann\Comparator;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass SebastianBergmann\Comparator\ScalarComparator
|
||||
* @covers \SebastianBergmann\Comparator\ScalarComparator<extended>
|
||||
*
|
||||
* @uses SebastianBergmann\Comparator\Comparator
|
||||
* @uses SebastianBergmann\Comparator\Factory
|
||||
* @uses SebastianBergmann\Comparator\ComparisonFailure
|
||||
* @uses \SebastianBergmann\Comparator\Comparator
|
||||
* @uses \SebastianBergmann\Comparator\Factory
|
||||
* @uses \SebastianBergmann\Comparator\ComparisonFailure
|
||||
*/
|
||||
class ScalarComparatorTest extends TestCase
|
||||
final class ScalarComparatorTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ScalarComparator
|
||||
*/
|
||||
private $comparator;
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->comparator = new ScalarComparator;
|
||||
}
|
||||
@@ -114,10 +117,9 @@ class ScalarComparatorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::accepts
|
||||
* @dataProvider acceptsSucceedsProvider
|
||||
*/
|
||||
public function testAcceptsSucceeds($expected, $actual)
|
||||
public function testAcceptsSucceeds($expected, $actual): void
|
||||
{
|
||||
$this->assertTrue(
|
||||
$this->comparator->accepts($expected, $actual)
|
||||
@@ -125,10 +127,9 @@ class ScalarComparatorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::accepts
|
||||
* @dataProvider acceptsFailsProvider
|
||||
*/
|
||||
public function testAcceptsFails($expected, $actual)
|
||||
public function testAcceptsFails($expected, $actual): void
|
||||
{
|
||||
$this->assertFalse(
|
||||
$this->comparator->accepts($expected, $actual)
|
||||
@@ -136,10 +137,9 @@ class ScalarComparatorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::assertEquals
|
||||
* @dataProvider assertEqualsSucceedsProvider
|
||||
*/
|
||||
public function testAssertEqualsSucceeds($expected, $actual, $ignoreCase = false)
|
||||
public function testAssertEqualsSucceeds($expected, $actual, $ignoreCase = false): void
|
||||
{
|
||||
$exception = null;
|
||||
|
||||
@@ -152,10 +152,9 @@ class ScalarComparatorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::assertEquals
|
||||
* @dataProvider assertEqualsFailsProvider
|
||||
*/
|
||||
public function testAssertEqualsFails($expected, $actual, $message)
|
||||
public function testAssertEqualsFails($expected, $actual, $message): void
|
||||
{
|
||||
$this->expectException(ComparisonFailure::class);
|
||||
$this->expectExceptionMessage($message);
|
||||
|
||||
Reference in New Issue
Block a user