1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Thu, 21 Sep 2017 00:35:42 -1000
Subject: Declare composer group for tests failing outside a Composer
environment
---
.../Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php | 2 ++
src/Symfony/Component/Config/Tests/Resource/ComposerResourceTest.php | 2 ++
src/Symfony/Component/HttpKernel/Tests/HttpKernelBrowserTest.php | 1 +
3 files changed, 5 insertions(+)
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
index bad55d1..415fa6c 100644
--- a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
+++ b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
@@ -11,6 +11,7 @@
namespace Symfony\Bridge\PhpUnit\Tests\DeprecationErrorHandler;
+use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\RequiresPhpunit;
use PHPUnit\Framework\TestCase;
@@ -239,6 +240,7 @@ class DeprecationTest extends TestCase
* @dataProvider providerGetTypeUsesRightTrace
*/
#[DataProvider('providerGetTypeUsesRightTrace')]
+ #[Group('composer')]
public function testGetTypeUsesRightTrace(string $expectedType, string $message, array $trace)
{
$deprecation = new Deprecation(
diff --git a/src/Symfony/Component/Config/Tests/Resource/ComposerResourceTest.php b/src/Symfony/Component/Config/Tests/Resource/ComposerResourceTest.php
index 10139f5..c5a54ef 100644
--- a/src/Symfony/Component/Config/Tests/Resource/ComposerResourceTest.php
+++ b/src/Symfony/Component/Config/Tests/Resource/ComposerResourceTest.php
@@ -12,11 +12,13 @@
namespace Symfony\Component\Config\Tests\Resource;
use Composer\Autoload\ClassLoader;
+use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Resource\ComposerResource;
class ComposerResourceTest extends TestCase
{
+ #[Group('composer')]
public function testGetVendor()
{
$res = new ComposerResource();
diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpKernelBrowserTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpKernelBrowserTest.php
index 2f1f308..641f335 100644
--- a/src/Symfony/Component/HttpKernel/Tests/HttpKernelBrowserTest.php
+++ b/src/Symfony/Component/HttpKernel/Tests/HttpKernelBrowserTest.php
@@ -44,6 +44,7 @@ class HttpKernelBrowserTest extends TestCase
$this->assertEquals('http://www.example.com/?parameter='.urlencode('http://example.com'), $client->getRequest()->getUri(), '->doRequest() uses the request handler to make the request');
}
+ #[Group('composer')]
public function testGetScript()
{
$client = new TestClient(new TestHttpKernel());
|