This commit is contained in:
Fabien Potencier 2016-06-21 08:43:40 +02:00
parent 0691506b1b
commit a41f359e51
4 changed files with 12 additions and 13 deletions

View File

@ -203,7 +203,7 @@ class FlattenExceptionTest extends \PHPUnit_Framework_TestCase
$incomplete, $incomplete,
$dh, $dh,
$fh, $fh,
function() {}, function () {},
array(1, 2), array(1, 2),
array('foo' => 123), array('foo' => 123),
null, null,

View File

@ -49,7 +49,7 @@ class ParsedExpression extends Expression
{ {
$dump = ''; $dump = '';
foreach($node->toArray() as $v) { foreach ($node->toArray() as $v) {
$dump .= is_scalar($v) ? $v : $this->dumpNode($v); $dump .= is_scalar($v) ? $v : $this->dumpNode($v);
} }

View File

@ -921,7 +921,6 @@ class FilesystemTest extends FilesystemTestCase
$this->assertTrue(is_file($link)); $this->assertTrue(is_file($link));
$this->assertEquals(fileinode($file), fileinode($link)); $this->assertEquals(fileinode($file), fileinode($link));
} }
public function testLinkWithSeveralTargets() public function testLinkWithSeveralTargets()
@ -934,7 +933,7 @@ class FilesystemTest extends FilesystemTestCase
touch($file); touch($file);
$this->filesystem->hardlink($file, array($link1,$link2)); $this->filesystem->hardlink($file, array($link1, $link2));
$this->assertTrue(is_file($link1)); $this->assertTrue(is_file($link1));
$this->assertEquals(fileinode($file), fileinode($link1)); $this->assertEquals(fileinode($file), fileinode($link1));
@ -952,7 +951,7 @@ class FilesystemTest extends FilesystemTestCase
touch($file); touch($file);
// practically same as testLinkIsNotOverwrittenIfAlreadyCreated // practically same as testLinkIsNotOverwrittenIfAlreadyCreated
$this->filesystem->hardlink($file, array($link,$link)); $this->filesystem->hardlink($file, array($link, $link));
$this->assertTrue(is_file($link)); $this->assertTrue(is_file($link));
$this->assertEquals(fileinode($file), fileinode($link)); $this->assertEquals(fileinode($file), fileinode($link));

View File

@ -22,31 +22,31 @@ class CallbackChoiceLoaderTest extends \PHPUnit_Framework_TestCase
/** /**
* @var \Symfony\Component\Form\ChoiceList\Loader\CallbackChoiceLoader * @var \Symfony\Component\Form\ChoiceList\Loader\CallbackChoiceLoader
*/ */
static private $loader; private static $loader;
/** /**
* @var callable * @var callable
*/ */
static private $value; private static $value;
/** /**
* @var array * @var array
*/ */
static private $choices; private static $choices;
/** /**
* @var string[] * @var string[]
*/ */
static private $choiceValues; private static $choiceValues;
/** /**
* @var \Symfony\Component\Form\ChoiceList\LazyChoiceList * @var \Symfony\Component\Form\ChoiceList\LazyChoiceList
*/ */
static private $lazyChoiceList; private static $lazyChoiceList;
static public function setUpBeforeClass() public static function setUpBeforeClass()
{ {
self::$loader = new CallbackChoiceLoader(function() { self::$loader = new CallbackChoiceLoader(function () {
return self::$choices; return self::$choices;
}); });
self::$value = function ($choice) { self::$value = function ($choice) {
@ -90,7 +90,7 @@ class CallbackChoiceLoaderTest extends \PHPUnit_Framework_TestCase
); );
} }
static public function tearDownAfterClass() public static function tearDownAfterClass()
{ {
self::$loader = null; self::$loader = null;
self::$value = null; self::$value = null;