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,
$dh,
$fh,
function() {},
function () {},
array(1, 2),
array('foo' => 123),
null,

View File

@ -49,7 +49,7 @@ class ParsedExpression extends Expression
{
$dump = '';
foreach($node->toArray() as $v) {
foreach ($node->toArray() as $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->assertEquals(fileinode($file), fileinode($link));
}
public function testLinkWithSeveralTargets()
@ -934,7 +933,7 @@ class FilesystemTest extends FilesystemTestCase
touch($file);
$this->filesystem->hardlink($file, array($link1,$link2));
$this->filesystem->hardlink($file, array($link1, $link2));
$this->assertTrue(is_file($link1));
$this->assertEquals(fileinode($file), fileinode($link1));
@ -952,7 +951,7 @@ class FilesystemTest extends FilesystemTestCase
touch($file);
// practically same as testLinkIsNotOverwrittenIfAlreadyCreated
$this->filesystem->hardlink($file, array($link,$link));
$this->filesystem->hardlink($file, array($link, $link));
$this->assertTrue(is_file($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
*/
static private $loader;
private static $loader;
/**
* @var callable
*/
static private $value;
private static $value;
/**
* @var array
*/
static private $choices;
private static $choices;
/**
* @var string[]
*/
static private $choiceValues;
private static $choiceValues;
/**
* @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;
});
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::$value = null;