Laravel 5.6 updates
Travis config update Removed HHVM script as Laravel no longer support HHVM after releasing 5.3
This commit is contained in:
@@ -7,23 +7,25 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace SebastianBergmann\Comparator;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass SebastianBergmann\Comparator\ResourceComparator
|
||||
* @covers \SebastianBergmann\Comparator\ResourceComparator<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 ResourceComparatorTest extends TestCase
|
||||
final class ResourceComparatorTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ResourceComparator
|
||||
*/
|
||||
private $comparator;
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->comparator = new ResourceComparator;
|
||||
}
|
||||
@@ -34,9 +36,9 @@ class ResourceComparatorTest extends TestCase
|
||||
$tmpfile2 = \tmpfile();
|
||||
|
||||
return [
|
||||
[$tmpfile1, $tmpfile1],
|
||||
[$tmpfile2, $tmpfile2],
|
||||
[$tmpfile1, $tmpfile2]
|
||||
[$tmpfile1, $tmpfile1],
|
||||
[$tmpfile2, $tmpfile2],
|
||||
[$tmpfile1, $tmpfile2]
|
||||
];
|
||||
}
|
||||
|
||||
@@ -45,9 +47,9 @@ class ResourceComparatorTest extends TestCase
|
||||
$tmpfile1 = \tmpfile();
|
||||
|
||||
return [
|
||||
[$tmpfile1, null],
|
||||
[null, $tmpfile1],
|
||||
[null, null]
|
||||
[$tmpfile1, null],
|
||||
[null, $tmpfile1],
|
||||
[null, null]
|
||||
];
|
||||
}
|
||||
|
||||
@@ -57,8 +59,8 @@ class ResourceComparatorTest extends TestCase
|
||||
$tmpfile2 = \tmpfile();
|
||||
|
||||
return [
|
||||
[$tmpfile1, $tmpfile1],
|
||||
[$tmpfile2, $tmpfile2]
|
||||
[$tmpfile1, $tmpfile1],
|
||||
[$tmpfile2, $tmpfile2]
|
||||
];
|
||||
}
|
||||
|
||||
@@ -68,16 +70,15 @@ class ResourceComparatorTest extends TestCase
|
||||
$tmpfile2 = \tmpfile();
|
||||
|
||||
return [
|
||||
[$tmpfile1, $tmpfile2],
|
||||
[$tmpfile2, $tmpfile1]
|
||||
[$tmpfile1, $tmpfile2],
|
||||
[$tmpfile2, $tmpfile1]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::accepts
|
||||
* @dataProvider acceptsSucceedsProvider
|
||||
*/
|
||||
public function testAcceptsSucceeds($expected, $actual)
|
||||
public function testAcceptsSucceeds($expected, $actual): void
|
||||
{
|
||||
$this->assertTrue(
|
||||
$this->comparator->accepts($expected, $actual)
|
||||
@@ -85,10 +86,9 @@ class ResourceComparatorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::accepts
|
||||
* @dataProvider acceptsFailsProvider
|
||||
*/
|
||||
public function testAcceptsFails($expected, $actual)
|
||||
public function testAcceptsFails($expected, $actual): void
|
||||
{
|
||||
$this->assertFalse(
|
||||
$this->comparator->accepts($expected, $actual)
|
||||
@@ -96,10 +96,9 @@ class ResourceComparatorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::assertEquals
|
||||
* @dataProvider assertEqualsSucceedsProvider
|
||||
*/
|
||||
public function testAssertEqualsSucceeds($expected, $actual)
|
||||
public function testAssertEqualsSucceeds($expected, $actual): void
|
||||
{
|
||||
$exception = null;
|
||||
|
||||
@@ -112,10 +111,9 @@ class ResourceComparatorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::assertEquals
|
||||
* @dataProvider assertEqualsFailsProvider
|
||||
*/
|
||||
public function testAssertEqualsFails($expected, $actual)
|
||||
public function testAssertEqualsFails($expected, $actual): void
|
||||
{
|
||||
$this->expectException(ComparisonFailure::class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user