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,19 +7,18 @@
|
||||
* 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\Factory
|
||||
* @covers \SebastianBergmann\Comparator\Factory
|
||||
*
|
||||
* @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 FactoryTest extends TestCase
|
||||
final class FactoryTest extends TestCase
|
||||
{
|
||||
public function instanceProvider()
|
||||
{
|
||||
@@ -70,20 +69,15 @@ class FactoryTest extends TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider instanceProvider
|
||||
* @covers ::getComparatorFor
|
||||
* @covers ::__construct
|
||||
*/
|
||||
public function testGetComparatorFor($a, $b, $expected)
|
||||
public function testGetComparatorFor($a, $b, $expected): void
|
||||
{
|
||||
$factory = new Factory;
|
||||
$actual = $factory->getComparatorFor($a, $b);
|
||||
$this->assertInstanceOf($expected, $actual);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::register
|
||||
*/
|
||||
public function testRegister()
|
||||
public function testRegister(): void
|
||||
{
|
||||
$comparator = new TestClassComparator;
|
||||
|
||||
@@ -99,10 +93,7 @@ class FactoryTest extends TestCase
|
||||
$this->assertInstanceOf($expected, $actual);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::unregister
|
||||
*/
|
||||
public function testUnregister()
|
||||
public function testUnregister(): void
|
||||
{
|
||||
$comparator = new TestClassComparator;
|
||||
|
||||
@@ -118,7 +109,7 @@ class FactoryTest extends TestCase
|
||||
$this->assertInstanceOf($expected, $actual);
|
||||
}
|
||||
|
||||
public function testIsSingleton()
|
||||
public function testIsSingleton(): void
|
||||
{
|
||||
$f = Factory::getInstance();
|
||||
$this->assertSame($f, Factory::getInstance());
|
||||
|
Reference in New Issue
Block a user