This commit is contained in:
Fabien Potencier 2012-05-21 16:06:09 +02:00
parent aa3e1a3b8c
commit ea33d4d377
16 changed files with 34 additions and 17 deletions

View File

@ -24,7 +24,8 @@ class SingleIdentEntity
/** @Column(type="string", nullable=true) */ /** @Column(type="string", nullable=true) */
public $name; public $name;
public function __construct($id, $name) { public function __construct($id, $name)
{
$this->id = $id; $this->id = $id;
$this->name = $name; $this->name = $name;
} }

View File

@ -4,7 +4,8 @@ namespace {
} }
class CFoo { class CFoo
{
use TFoo; use TFoo;
} }
} }
@ -22,7 +23,8 @@ namespace Foo {
} }
class CBar implements IBar { class CBar implements IBar
{
use TBar, TFooBar; use TBar, TFooBar;
} }
} }

View File

@ -1033,7 +1033,8 @@ class Application
* *
* @return array A sorted array of similar string * @return array A sorted array of similar string
*/ */
private function findAlternatives($name, $collection, $abbrevs, $callback = null) { private function findAlternatives($name, $collection, $abbrevs, $callback = null)
{
$alternatives = array(); $alternatives = array();
foreach ($collection as $item) { foreach ($collection as $item) {

View File

@ -242,7 +242,8 @@ class Service
class SubscriberService implements EventSubscriberInterface class SubscriberService implements EventSubscriberInterface
{ {
static function getSubscribedEvents() { static function getSubscribedEvents()
{
return array( return array(
'onEvent' => 'onEvent', 'onEvent' => 'onEvent',
'onEvent' => array('onEvent', 10), 'onEvent' => array('onEvent', 10),

View File

@ -71,7 +71,8 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
return $icuVersion >= $version; return $icuVersion >= $version;
} }
protected function isSameAsIcuVersion($version) { protected function isSameAsIcuVersion($version)
{
$version = $this->normalizeIcuVersion($version); $version = $this->normalizeIcuVersion($version);
$icuVersion = $this->normalizeIcuVersion($this->getIntlExtensionIcuVersion()); $icuVersion = $this->normalizeIcuVersion($this->getIntlExtensionIcuVersion());

View File

@ -16,7 +16,8 @@ use Symfony\Component\Translation\Dumper\YamlFileDumper;
class YamlFileDumperTest extends \PHPUnit_Framework_TestCase class YamlFileDumperTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Yaml\Yaml')) { if (!class_exists('Symfony\Component\Yaml\Yaml')) {
$this->markTestSkipped('The "Yaml" component is not available'); $this->markTestSkipped('The "Yaml" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\FileResource;
class CsvFileLoaderTest extends \PHPUnit_Framework_TestCase class CsvFileLoaderTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\FileResource;
class IcuDatFileLoaderTest extends LocalizedTestCase class IcuDatFileLoaderTest extends LocalizedTestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\DirectoryResource;
class IcuResFileLoaderTest extends LocalizedTestCase class IcuResFileLoaderTest extends LocalizedTestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\FileResource;
class IniFileLoaderTest extends \PHPUnit_Framework_TestCase class IniFileLoaderTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\FileResource;
class MoFileLoaderTest extends \PHPUnit_Framework_TestCase class MoFileLoaderTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\FileResource;
class PhpFileLoaderTest extends \PHPUnit_Framework_TestCase class PhpFileLoaderTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\FileResource;
class PoFileLoaderTest extends \PHPUnit_Framework_TestCase class PoFileLoaderTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\FileResource;
class QtTranslationsLoaderTest extends \PHPUnit_Framework_TestCase class QtTranslationsLoaderTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\FileResource;
class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }

View File

@ -16,7 +16,8 @@ use Symfony\Component\Config\Resource\FileResource;
class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() { protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) { if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available'); $this->markTestSkipped('The "Config" component is not available');
} }