fix code style
This commit is contained in:
parent
0304f754b3
commit
689e3039fc
@ -289,7 +289,7 @@ abstract class AbstractDescriptorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @dataProvider getDescribeContainerBuilderWithPriorityTagsTestData */
|
/** @dataProvider getDescribeContainerBuilderWithPriorityTagsTestData */
|
||||||
public function testDescribeContainerBuilderWithPriorityTags(ContainerBuilder $builder, $expectedDescription, array $options): void
|
public function testDescribeContainerBuilderWithPriorityTags(ContainerBuilder $builder, $expectedDescription, array $options)
|
||||||
{
|
{
|
||||||
$this->assertDescription($expectedDescription, $builder, $options);
|
$this->assertDescription($expectedDescription, $builder, $options);
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ $container->loadFromExtension('framework', [
|
|||||||
'initial_marking' => ['draft'],
|
'initial_marking' => ['draft'],
|
||||||
'metadata' => [
|
'metadata' => [
|
||||||
'title' => 'article workflow',
|
'title' => 'article workflow',
|
||||||
'description' => 'workflow for articles'
|
'description' => 'workflow for articles',
|
||||||
],
|
],
|
||||||
'places' => [
|
'places' => [
|
||||||
'draft',
|
'draft',
|
||||||
|
@ -1641,7 +1641,7 @@ abstract class FrameworkExtensionTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider provideMailer
|
* @dataProvider provideMailer
|
||||||
*/
|
*/
|
||||||
public function testMailer(string $configFile, array $expectedTransports): void
|
public function testMailer(string $configFile, array $expectedTransports)
|
||||||
{
|
{
|
||||||
$container = $this->createContainerFromFile($configFile);
|
$container = $this->createContainerFromFile($configFile);
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||||||
|
|
||||||
class Category
|
class Category
|
||||||
{
|
{
|
||||||
const NAME_PATTERN = '/\w+/';
|
public const NAME_PATTERN = '/\w+/';
|
||||||
|
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
|
@ -345,7 +345,7 @@ class SecurityDataCollectorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @dataProvider providerCollectDecisionLog
|
* @dataProvider providerCollectDecisionLog
|
||||||
*/
|
*/
|
||||||
public function testCollectDecisionLog(string $strategy, array $decisionLog, array $voters, array $expectedVoterClasses, array $expectedDecisionLog): void
|
public function testCollectDecisionLog(string $strategy, array $decisionLog, array $voters, array $expectedVoterClasses, array $expectedDecisionLog)
|
||||||
{
|
{
|
||||||
$accessDecisionManager = $this
|
$accessDecisionManager = $this
|
||||||
->getMockBuilder(TraceableAccessDecisionManager::class)
|
->getMockBuilder(TraceableAccessDecisionManager::class)
|
||||||
|
@ -27,7 +27,7 @@ class Html5ParserCrawlerTest extends AbstractCrawlerTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @dataProvider validHtml5Provider */
|
/** @dataProvider validHtml5Provider */
|
||||||
public function testHtml5ParserParseContentStartingWithValidHeading(string $content): void
|
public function testHtml5ParserParseContentStartingWithValidHeading(string $content)
|
||||||
{
|
{
|
||||||
$this->skipTestIfHTML5LibraryNotAvailable();
|
$this->skipTestIfHTML5LibraryNotAvailable();
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class StringToFloatTransformerTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider provideTransformations
|
* @dataProvider provideTransformations
|
||||||
*/
|
*/
|
||||||
public function testTransform($from, $to): void
|
public function testTransform($from, $to)
|
||||||
{
|
{
|
||||||
$transformer = new StringToFloatTransformer();
|
$transformer = new StringToFloatTransformer();
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ ERROR;
|
|||||||
/**
|
/**
|
||||||
* @dataProvider provideParseError
|
* @dataProvider provideParseError
|
||||||
*/
|
*/
|
||||||
public function testParseError(string $mimeType, string $json, string $expectedMessage): void
|
public function testParseError(string $mimeType, string $json, string $expectedMessage)
|
||||||
{
|
{
|
||||||
$response = $this->createMock(ResponseInterface::class);
|
$response = $this->createMock(ResponseInterface::class);
|
||||||
$response
|
$response
|
||||||
|
@ -54,7 +54,7 @@ abstract class TransportFactoryTestCase extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider supportsProvider
|
* @dataProvider supportsProvider
|
||||||
*/
|
*/
|
||||||
public function testSupports(Dsn $dsn, bool $supports): void
|
public function testSupports(Dsn $dsn, bool $supports)
|
||||||
{
|
{
|
||||||
$factory = $this->getFactory();
|
$factory = $this->getFactory();
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ class DsnTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider fromStringProvider
|
* @dataProvider fromStringProvider
|
||||||
*/
|
*/
|
||||||
public function testFromString(string $string, Dsn $dsn): void
|
public function testFromString(string $string, Dsn $dsn)
|
||||||
{
|
{
|
||||||
$this->assertEquals($dsn, Dsn::fromString($string));
|
$this->assertEquals($dsn, Dsn::fromString($string));
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ class TransportTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider fromStringProvider
|
* @dataProvider fromStringProvider
|
||||||
*/
|
*/
|
||||||
public function testFromString(string $dsn, TransportInterface $transport): void
|
public function testFromString(string $dsn, TransportInterface $transport)
|
||||||
{
|
{
|
||||||
$transportFactory = new Transport([new DummyTransportFactory()]);
|
$transportFactory = new Transport([new DummyTransportFactory()]);
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ class ObjectLoaderTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider getBadResourceStrings
|
* @dataProvider getBadResourceStrings
|
||||||
*/
|
*/
|
||||||
public function testExceptionWithoutSyntax(string $resourceString): void
|
public function testExceptionWithoutSyntax(string $resourceString)
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$loader = new TestObjectLoader();
|
$loader = new TestObjectLoader();
|
||||||
|
@ -71,7 +71,7 @@ class ObjectRouteLoaderTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider getBadResourceStrings
|
* @dataProvider getBadResourceStrings
|
||||||
*/
|
*/
|
||||||
public function testExceptionWithoutSyntax(string $resourceString): void
|
public function testExceptionWithoutSyntax(string $resourceString)
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$loader = new TestObjectRouteLoader();
|
$loader = new TestObjectRouteLoader();
|
||||||
|
Reference in New Issue
Block a user