fixed CS
This commit is contained in:
parent
20bf24ea3d
commit
e9022adaef
@ -50,7 +50,7 @@ EOF;
|
||||
public function testExecuteListsCommandsWithNamespaceArgument()
|
||||
{
|
||||
|
||||
require_once(realpath(__DIR__.'/../Fixtures/FooCommand.php'));
|
||||
require_once realpath(__DIR__.'/../Fixtures/FooCommand.php');
|
||||
$application = new Application();
|
||||
$application->add(new \FooCommand());
|
||||
$commandTester = new CommandTester($command = $application->get('list'));
|
||||
|
@ -140,7 +140,7 @@ class PhpDumperTest extends \PHPUnit_Framework_TestCase
|
||||
eval('?>'.$dumper->dump(array('class' => '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('alias_for_foo'));
|
||||
$this->assertSame($foo, $container->get('alias_for_alias'));
|
||||
|
@ -201,7 +201,7 @@ class ProjectServiceContainer extends Container
|
||||
$this->services['method_call1'] = $instance = new \FooClass();
|
||||
|
||||
$instance->setBar($this->get('foo'));
|
||||
$instance->setBar(NULL);
|
||||
$instance->setBar(null);
|
||||
|
||||
return $instance;
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -4,4 +4,3 @@ parameters:
|
||||
bar: 'foo is %%foo bar'
|
||||
escape: '@@escapeme'
|
||||
values: [true, false, null, 0, 1000.3, 'true', 'false', 'null']
|
||||
|
||||
|
@ -680,7 +680,7 @@ class ResponseTest extends ResponseTestCase
|
||||
public function validContentProvider()
|
||||
{
|
||||
return array(
|
||||
'obj' => array(new StringableObject),
|
||||
'obj' => array(new StringableObject()),
|
||||
'string' => array('Foo'),
|
||||
'int' => array(2),
|
||||
);
|
||||
@ -689,7 +689,7 @@ class ResponseTest extends ResponseTestCase
|
||||
public function invalidContentProvider()
|
||||
{
|
||||
return array(
|
||||
'obj' => array(new \stdClass),
|
||||
'obj' => array(new \stdClass()),
|
||||
'array' => array(array()),
|
||||
'bool' => array(true, '1'),
|
||||
);
|
||||
|
@ -1190,7 +1190,7 @@ class HttpCacheTest extends HttpCacheTestCase
|
||||
|
||||
public function testEsiCacheRemoveValidationHeadersIfEmbeddedResponses()
|
||||
{
|
||||
$time = new \DateTime;
|
||||
$time = new \DateTime();
|
||||
|
||||
$responses = array(
|
||||
array(
|
||||
|
@ -46,7 +46,7 @@ class ExecutableFinderTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->setPath(dirname(PHP_BINARY));
|
||||
|
||||
$finder = new ExecutableFinder;
|
||||
$finder = new ExecutableFinder();
|
||||
$result = $finder->find($this->getPhpBinaryName());
|
||||
|
||||
$this->assertSamePath(PHP_BINARY, $result);
|
||||
@ -62,7 +62,7 @@ class ExecutableFinderTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->setPath('');
|
||||
|
||||
$finder = new ExecutableFinder;
|
||||
$finder = new ExecutableFinder();
|
||||
$result = $finder->find('foo', $expected);
|
||||
|
||||
$this->assertEquals($expected, $result);
|
||||
@ -82,7 +82,7 @@ class ExecutableFinderTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$extraDirs = array(dirname(PHP_BINARY));
|
||||
|
||||
$finder = new ExecutableFinder;
|
||||
$finder = new ExecutableFinder();
|
||||
$result = $finder->find($this->getPhpBinaryName(), null, $extraDirs);
|
||||
|
||||
$this->assertSamePath(PHP_BINARY, $result);
|
||||
@ -104,7 +104,7 @@ class ExecutableFinderTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
ini_set('open_basedir', dirname(PHP_BINARY).PATH_SEPARATOR.'/');
|
||||
|
||||
$finder = new ExecutableFinder;
|
||||
$finder = new ExecutableFinder();
|
||||
$result = $finder->find($this->getPhpBinaryName());
|
||||
|
||||
$this->assertSamePath(PHP_BINARY, $result);
|
||||
|
@ -141,7 +141,7 @@ class GetSetMethodNormalizer extends SerializerAwareNormalizer implements Normal
|
||||
|
||||
$object = $reflectionClass->newInstanceArgs($params);
|
||||
} else {
|
||||
$object = new $class;
|
||||
$object = new $class();
|
||||
}
|
||||
|
||||
foreach ($data as $attribute => $value) {
|
||||
|
@ -189,7 +189,7 @@ class XmlEncoderTest extends \PHPUnit_Framework_TestCase
|
||||
public function testEncodeSerializerXmlRootNodeNameOption()
|
||||
{
|
||||
$options = array('xml_root_node_name' => 'test');
|
||||
$this->encoder = new XmlEncoder;
|
||||
$this->encoder = new XmlEncoder();
|
||||
$serializer = new Serializer(array(), array('xml' => new XmlEncoder()));
|
||||
$this->encoder->setSerializer($serializer);
|
||||
|
||||
@ -272,7 +272,7 @@ class XmlEncoderTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testDecodeWithoutItemHash()
|
||||
{
|
||||
$obj = new ScalarDummy;
|
||||
$obj = new ScalarDummy();
|
||||
$obj->xmlFoo = array(
|
||||
'foo-bar' => array(
|
||||
'@key' => "value",
|
||||
|
Reference in New Issue
Block a user