-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Symfony 7 #1535
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,6 @@ | |
use Symfony\Component\Mime\MimeTypes; | ||
|
||
/** | ||
* @requires PHP 5.4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Package requires PHP 7.2, so this is unnecessary |
||
* | ||
* @covers \Liip\ImagineBundle\Binary\Loader\FlysystemLoader | ||
*/ | ||
class FlysystemLoaderTest extends AbstractTest | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,6 @@ | |
use Symfony\Component\Mime\MimeTypes; | ||
|
||
/** | ||
* @requires PHP 7.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Package requires PHP 7.2, so this is unnecessary |
||
* | ||
* @covers \Liip\ImagineBundle\Binary\Loader\FlysystemV2Loader | ||
*/ | ||
class FlysystemV2LoaderTest extends AbstractTest | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,6 @@ | |
use Symfony\Component\Routing\RequestContext; | ||
|
||
/** | ||
* @requires PHP 7.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Package requires PHP 7.2, so this is unnecessary |
||
* | ||
* @covers \Liip\ImagineBundle\Imagine\Cache\Resolver\FlysystemV2Resolver | ||
*/ | ||
class FlysystemV2ResolverTest extends AbstractTest | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,9 @@ | |
use Liip\ImagineBundle\Message\WarmupCache; | ||
use Liip\ImagineBundle\Service\FilterService; | ||
use Liip\ImagineBundle\Tests\Functional\AbstractWebTestCase; | ||
use Symfony\Component\Messenger\Handler\MessageHandlerInterface; | ||
use Symfony\Component\Messenger\MessageBusInterface; | ||
|
||
/** | ||
* @requires PHP 7.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Package requires PHP 7.2, so this is unnecessary |
||
* | ||
* @covers \Liip\ImagineBundle\Message\Handler\WarmupCacheHandler | ||
*/ | ||
class WarmupCacheHandlerTest extends AbstractWebTestCase | ||
|
@@ -36,13 +33,6 @@ protected function setUp(): void | |
} | ||
} | ||
|
||
public function testShouldImplementMessageHandlerInterface(): void | ||
{ | ||
$rc = new \ReflectionClass(WarmupCacheHandler::class); | ||
|
||
$this->assertTrue($rc->implementsInterface(MessageHandlerInterface::class)); | ||
} | ||
|
||
Comment on lines
-39
to
-45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the interface is removed from the framework, and the class no longer implements it, the test is unnecessary. |
||
public function testCouldBeConstructedWithExpectedArguments(): void | ||
{ | ||
static::createClient(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,17 @@ | |
use Liip\ImagineBundle\Templating\FilterExtension; | ||
use Liip\ImagineBundle\Templating\Helper\FilterHelper; | ||
use Liip\ImagineBundle\Tests\AbstractTest; | ||
use Symfony\Component\Templating\Helper\Helper; | ||
|
||
abstract class AbstractFilterTest extends AbstractTest | ||
{ | ||
public static function setUpBeforeClass(): void | ||
{ | ||
if (!class_exists(Helper::class)) { | ||
static::markTestSkipped('Test requires deprecated symfony/templating component'); | ||
} | ||
} | ||
Comment on lines
+22
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
public function testCanBeConstructed(): void | ||
{ | ||
$this->createTemplatingMock(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The interface is removed in favor of the
AsMessageHandler
attribute for autowiring, but since the service isn't autowired, the attribute isn't really necessary here.