fixed CS
This commit is contained in:
parent
20bf24ea3d
commit
e9022adaef
@ -50,7 +50,7 @@ EOF;
|
|||||||
public function testExecuteListsCommandsWithNamespaceArgument()
|
public function testExecuteListsCommandsWithNamespaceArgument()
|
||||||
{
|
{
|
||||||
|
|
||||||
require_once(realpath(__DIR__.'/../Fixtures/FooCommand.php'));
|
require_once realpath(__DIR__.'/../Fixtures/FooCommand.php');
|
||||||
$application = new Application();
|
$application = new Application();
|
||||||
$application->add(new \FooCommand());
|
$application->add(new \FooCommand());
|
||||||
$commandTester = new CommandTester($command = $application->get('list'));
|
$commandTester = new CommandTester($command = $application->get('list'));
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
||||||
<description>Displays help for a command</description>
|
<description>Displays help for a command</description>
|
||||||
<help>The <info>help</info> command displays help for a given command:
|
<help>The <info>help</info> command displays help for a given command:
|
||||||
|
|
||||||
<info>php app/console help list</info>
|
<info>php app/console help list</info>
|
||||||
|
|
||||||
You can also output the help in other formats by using the <comment>--format</comment> option:
|
You can also output the help in other formats by using the <comment>--format</comment> option:
|
||||||
|
|
||||||
<info>php app/console help --format=xml list</info>
|
<info>php app/console help --format=xml list</info>
|
||||||
|
|
||||||
To display the list of available commands, please use the <info>list</info> command.</help>
|
To display the list of available commands, please use the <info>list</info> command.</help>
|
||||||
<aliases/>
|
<aliases/>
|
||||||
<arguments>
|
<arguments>
|
||||||
@ -60,19 +60,19 @@
|
|||||||
<usage>list [--xml] [--raw] [--format="..."] [namespace]</usage>
|
<usage>list [--xml] [--raw] [--format="..."] [namespace]</usage>
|
||||||
<description>Lists commands</description>
|
<description>Lists commands</description>
|
||||||
<help>The <info>list</info> command lists all commands:
|
<help>The <info>list</info> command lists all commands:
|
||||||
|
|
||||||
<info>php app/console list</info>
|
<info>php app/console list</info>
|
||||||
|
|
||||||
You can also display the commands for a specific namespace:
|
You can also display the commands for a specific namespace:
|
||||||
|
|
||||||
<info>php app/console list test</info>
|
<info>php app/console list test</info>
|
||||||
|
|
||||||
You can also output the information in other formats by using the <comment>--format</comment> option:
|
You can also output the information in other formats by using the <comment>--format</comment> option:
|
||||||
|
|
||||||
<info>php app/console list --format=xml</info>
|
<info>php app/console list --format=xml</info>
|
||||||
|
|
||||||
It's also possible to get raw list of commands (useful for embedding command runner):
|
It's also possible to get raw list of commands (useful for embedding command runner):
|
||||||
|
|
||||||
<info>php app/console list --raw</info></help>
|
<info>php app/console list --raw</info></help>
|
||||||
<aliases/>
|
<aliases/>
|
||||||
<arguments>
|
<arguments>
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
||||||
<description>Displays help for a command</description>
|
<description>Displays help for a command</description>
|
||||||
<help>The <info>help</info> command displays help for a given command:
|
<help>The <info>help</info> command displays help for a given command:
|
||||||
|
|
||||||
<info>php app/console help list</info>
|
<info>php app/console help list</info>
|
||||||
|
|
||||||
You can also output the help in other formats by using the <comment>--format</comment> option:
|
You can also output the help in other formats by using the <comment>--format</comment> option:
|
||||||
|
|
||||||
<info>php app/console help --format=xml list</info>
|
<info>php app/console help --format=xml list</info>
|
||||||
|
|
||||||
To display the list of available commands, please use the <info>list</info> command.</help>
|
To display the list of available commands, please use the <info>list</info> command.</help>
|
||||||
<aliases/>
|
<aliases/>
|
||||||
<arguments>
|
<arguments>
|
||||||
@ -60,19 +60,19 @@
|
|||||||
<usage>list [--xml] [--raw] [--format="..."] [namespace]</usage>
|
<usage>list [--xml] [--raw] [--format="..."] [namespace]</usage>
|
||||||
<description>Lists commands</description>
|
<description>Lists commands</description>
|
||||||
<help>The <info>list</info> command lists all commands:
|
<help>The <info>list</info> command lists all commands:
|
||||||
|
|
||||||
<info>php app/console list</info>
|
<info>php app/console list</info>
|
||||||
|
|
||||||
You can also display the commands for a specific namespace:
|
You can also display the commands for a specific namespace:
|
||||||
|
|
||||||
<info>php app/console list test</info>
|
<info>php app/console list test</info>
|
||||||
|
|
||||||
You can also output the information in other formats by using the <comment>--format</comment> option:
|
You can also output the information in other formats by using the <comment>--format</comment> option:
|
||||||
|
|
||||||
<info>php app/console list --format=xml</info>
|
<info>php app/console list --format=xml</info>
|
||||||
|
|
||||||
It's also possible to get raw list of commands (useful for embedding command runner):
|
It's also possible to get raw list of commands (useful for embedding command runner):
|
||||||
|
|
||||||
<info>php app/console list --raw</info></help>
|
<info>php app/console list --raw</info></help>
|
||||||
<aliases/>
|
<aliases/>
|
||||||
<arguments>
|
<arguments>
|
||||||
|
@ -140,7 +140,7 @@ class PhpDumperTest extends \PHPUnit_Framework_TestCase
|
|||||||
eval('?>'.$dumper->dump(array('class' => 'Symfony_DI_PhpDumper_Test_Aliases')));
|
eval('?>'.$dumper->dump(array('class' => 'Symfony_DI_PhpDumper_Test_Aliases')));
|
||||||
|
|
||||||
$container = new \Symfony_DI_PhpDumper_Test_Aliases();
|
$container = new \Symfony_DI_PhpDumper_Test_Aliases();
|
||||||
$container->set('foo', $foo = new \stdClass);
|
$container->set('foo', $foo = new \stdClass());
|
||||||
$this->assertSame($foo, $container->get('foo'));
|
$this->assertSame($foo, $container->get('foo'));
|
||||||
$this->assertSame($foo, $container->get('alias_for_foo'));
|
$this->assertSame($foo, $container->get('alias_for_foo'));
|
||||||
$this->assertSame($foo, $container->get('alias_for_alias'));
|
$this->assertSame($foo, $container->get('alias_for_alias'));
|
||||||
|
@ -201,7 +201,7 @@ class ProjectServiceContainer extends Container
|
|||||||
$this->services['method_call1'] = $instance = new \FooClass();
|
$this->services['method_call1'] = $instance = new \FooClass();
|
||||||
|
|
||||||
$instance->setBar($this->get('foo'));
|
$instance->setBar($this->get('foo'));
|
||||||
$instance->setBar(NULL);
|
$instance->setBar(null);
|
||||||
|
|
||||||
return $instance;
|
return $instance;
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
|
|
@ -4,4 +4,3 @@ parameters:
|
|||||||
bar: 'foo is %%foo bar'
|
bar: 'foo is %%foo bar'
|
||||||
escape: '@@escapeme'
|
escape: '@@escapeme'
|
||||||
values: [true, false, null, 0, 1000.3, 'true', 'false', 'null']
|
values: [true, false, null, 0, 1000.3, 'true', 'false', 'null']
|
||||||
|
|
||||||
|
@ -680,7 +680,7 @@ class ResponseTest extends ResponseTestCase
|
|||||||
public function validContentProvider()
|
public function validContentProvider()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'obj' => array(new StringableObject),
|
'obj' => array(new StringableObject()),
|
||||||
'string' => array('Foo'),
|
'string' => array('Foo'),
|
||||||
'int' => array(2),
|
'int' => array(2),
|
||||||
);
|
);
|
||||||
@ -689,7 +689,7 @@ class ResponseTest extends ResponseTestCase
|
|||||||
public function invalidContentProvider()
|
public function invalidContentProvider()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'obj' => array(new \stdClass),
|
'obj' => array(new \stdClass()),
|
||||||
'array' => array(array()),
|
'array' => array(array()),
|
||||||
'bool' => array(true, '1'),
|
'bool' => array(true, '1'),
|
||||||
);
|
);
|
||||||
|
@ -1190,7 +1190,7 @@ class HttpCacheTest extends HttpCacheTestCase
|
|||||||
|
|
||||||
public function testEsiCacheRemoveValidationHeadersIfEmbeddedResponses()
|
public function testEsiCacheRemoveValidationHeadersIfEmbeddedResponses()
|
||||||
{
|
{
|
||||||
$time = new \DateTime;
|
$time = new \DateTime();
|
||||||
|
|
||||||
$responses = array(
|
$responses = array(
|
||||||
array(
|
array(
|
||||||
|
@ -46,7 +46,7 @@ class ExecutableFinderTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$this->setPath(dirname(PHP_BINARY));
|
$this->setPath(dirname(PHP_BINARY));
|
||||||
|
|
||||||
$finder = new ExecutableFinder;
|
$finder = new ExecutableFinder();
|
||||||
$result = $finder->find($this->getPhpBinaryName());
|
$result = $finder->find($this->getPhpBinaryName());
|
||||||
|
|
||||||
$this->assertSamePath(PHP_BINARY, $result);
|
$this->assertSamePath(PHP_BINARY, $result);
|
||||||
@ -62,7 +62,7 @@ class ExecutableFinderTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$this->setPath('');
|
$this->setPath('');
|
||||||
|
|
||||||
$finder = new ExecutableFinder;
|
$finder = new ExecutableFinder();
|
||||||
$result = $finder->find('foo', $expected);
|
$result = $finder->find('foo', $expected);
|
||||||
|
|
||||||
$this->assertEquals($expected, $result);
|
$this->assertEquals($expected, $result);
|
||||||
@ -82,7 +82,7 @@ class ExecutableFinderTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$extraDirs = array(dirname(PHP_BINARY));
|
$extraDirs = array(dirname(PHP_BINARY));
|
||||||
|
|
||||||
$finder = new ExecutableFinder;
|
$finder = new ExecutableFinder();
|
||||||
$result = $finder->find($this->getPhpBinaryName(), null, $extraDirs);
|
$result = $finder->find($this->getPhpBinaryName(), null, $extraDirs);
|
||||||
|
|
||||||
$this->assertSamePath(PHP_BINARY, $result);
|
$this->assertSamePath(PHP_BINARY, $result);
|
||||||
@ -104,7 +104,7 @@ class ExecutableFinderTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
ini_set('open_basedir', dirname(PHP_BINARY).PATH_SEPARATOR.'/');
|
ini_set('open_basedir', dirname(PHP_BINARY).PATH_SEPARATOR.'/');
|
||||||
|
|
||||||
$finder = new ExecutableFinder;
|
$finder = new ExecutableFinder();
|
||||||
$result = $finder->find($this->getPhpBinaryName());
|
$result = $finder->find($this->getPhpBinaryName());
|
||||||
|
|
||||||
$this->assertSamePath(PHP_BINARY, $result);
|
$this->assertSamePath(PHP_BINARY, $result);
|
||||||
|
@ -141,7 +141,7 @@ class GetSetMethodNormalizer extends SerializerAwareNormalizer implements Normal
|
|||||||
|
|
||||||
$object = $reflectionClass->newInstanceArgs($params);
|
$object = $reflectionClass->newInstanceArgs($params);
|
||||||
} else {
|
} else {
|
||||||
$object = new $class;
|
$object = new $class();
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($data as $attribute => $value) {
|
foreach ($data as $attribute => $value) {
|
||||||
|
@ -189,7 +189,7 @@ class XmlEncoderTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function testEncodeSerializerXmlRootNodeNameOption()
|
public function testEncodeSerializerXmlRootNodeNameOption()
|
||||||
{
|
{
|
||||||
$options = array('xml_root_node_name' => 'test');
|
$options = array('xml_root_node_name' => 'test');
|
||||||
$this->encoder = new XmlEncoder;
|
$this->encoder = new XmlEncoder();
|
||||||
$serializer = new Serializer(array(), array('xml' => new XmlEncoder()));
|
$serializer = new Serializer(array(), array('xml' => new XmlEncoder()));
|
||||||
$this->encoder->setSerializer($serializer);
|
$this->encoder->setSerializer($serializer);
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ class XmlEncoderTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testDecodeWithoutItemHash()
|
public function testDecodeWithoutItemHash()
|
||||||
{
|
{
|
||||||
$obj = new ScalarDummy;
|
$obj = new ScalarDummy();
|
||||||
$obj->xmlFoo = array(
|
$obj->xmlFoo = array(
|
||||||
'foo-bar' => array(
|
'foo-bar' => array(
|
||||||
'@key' => "value",
|
'@key' => "value",
|
||||||
|
Reference in New Issue
Block a user