Skip to content

Commit

Permalink
Merge pull request #417 from Ocramius/enhacement/use-proper-visibility
Browse files Browse the repository at this point in the history
Use proper visibility when overwriting `TestCase#setUp()`
  • Loading branch information
Ocramius committed Jun 8, 2018
2 parents 80f3f9c + 85d2150 commit 99542a2
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion tests/ProxyManagerBench/BaselinePropertyAccessBench.php
Expand Up @@ -61,7 +61,7 @@ class BaselinePropertyAccessBench
*/
private $accessMixedPropertiesProtected;

public function setUp()
protected function setUp()
{
$this->privateProperties = new ClassWithPrivateProperties();
$this->protectedProperties = new ClassWithProtectedProperties();
Expand Down
Expand Up @@ -50,7 +50,7 @@ class LazyLoadingGhostInstantiationBench
*/
private $mixedPropertiesProxy;

public function setUp()
protected function setUp()
{
$this->emptyClassProxy = $this->generateProxy(EmptyClass::class);
$this->privatePropertiesProxy = $this->generateProxy(ClassWithPrivateProperties::class);
Expand Down
Expand Up @@ -88,7 +88,7 @@ class LazyLoadingGhostPropertyAccessBench
*/
private $initializedMixedPropertiesProxy;

public function setUp()
protected function setUp()
{
$this->emptyClassProxy = $this->buildProxy(EmptyClass::class);
$this->privatePropertiesProxy = $this->buildProxy(ClassWithPrivateProperties::class);
Expand Down
Expand Up @@ -50,7 +50,7 @@ class LazyLoadingValueHolderInstantiationBench
*/
private $mixedPropertiesProxy;

public function setUp()
protected function setUp()
{
$this->emptyClassProxy = $this->generateProxy(EmptyClass::class);
$this->privatePropertiesProxy = $this->generateProxy(ClassWithPrivateProperties::class);
Expand Down
Expand Up @@ -54,7 +54,7 @@ class LazyLoadingValueHolderPropertyAccessBench
*/
private $initializedMixedPropertiesProxy;

public function setUp()
protected function setUp()
{
$this->emptyClassProxy = $this->buildProxy(EmptyClass::class);
$this->publicPropertiesProxy = $this->buildProxy(ClassWithPublicProperties::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/ProxyManagerTest/Autoloader/AutoloaderTest.php
Expand Up @@ -39,7 +39,7 @@ class AutoloaderTest extends TestCase
/**
* @covers \ProxyManager\Autoloader\Autoloader::__construct
*/
public function setUp()
protected function setUp()
{
$this->fileLocator = $this->createMock(FileLocatorInterface::class);
$this->classNameInflector = $this->createMock(ClassNameInflectorInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/ProxyManagerTest/ConfigurationTest.php
Expand Up @@ -32,7 +32,7 @@ class ConfigurationTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$this->configuration = new Configuration();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ProxyManagerTest/Factory/AbstractBaseFactoryTest.php
Expand Up @@ -69,7 +69,7 @@ class AbstractBaseFactoryTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$configuration = $this->createMock(Configuration::class);
$this->generator = $this->createMock(ProxyGeneratorInterface::class);
Expand Down
Expand Up @@ -52,7 +52,7 @@ class AccessInterceptorScopeLocalizerFactoryTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$this->config = $this->createMock(Configuration::class);
$this->inflector = $this->createMock(ClassNameInflectorInterface::class);
Expand Down
Expand Up @@ -51,7 +51,7 @@ class AccessInterceptorValueHolderFactoryTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$this->config = $this->createMock(Configuration::class);
$this->inflector = $this->createMock(ClassNameInflectorInterface::class);
Expand Down
Expand Up @@ -49,7 +49,7 @@ class LazyLoadingGhostFactoryTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$this->config = $this->createMock(Configuration::class);
$this->inflector = $this->createMock(ClassNameInflectorInterface::class);
Expand Down
Expand Up @@ -50,7 +50,7 @@ class LazyLoadingValueHolderFactoryTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$this->config = $this->createMock(Configuration::class);
$this->inflector = $this->createMock(ClassNameInflectorInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/ProxyManagerTest/Factory/NullObjectFactoryTest.php
Expand Up @@ -50,7 +50,7 @@ class NullObjectFactoryTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$this->config = $this->createMock(Configuration::class);
$this->inflector = $this->createMock(ClassNameInflectorInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/ProxyManagerTest/Factory/RemoteObjectFactoryTest.php
Expand Up @@ -51,7 +51,7 @@ class RemoteObjectFactoryTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$this->config = $this->createMock(Configuration::class);
$this->inflector = $this->createMock(ClassNameInflectorInterface::class);
Expand Down
Expand Up @@ -36,7 +36,7 @@ class BindProxyPropertiesTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$this->prefixInterceptors = $this->createMock(PropertyGenerator::class);
$this->suffixInterceptors = $this->createMock(PropertyGenerator::class);
Expand Down
Expand Up @@ -35,7 +35,7 @@ class StaticProxyConstructorTest extends TestCase
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
$this->prefixInterceptors = $this->createMock(PropertyGenerator::class);
$this->suffixInterceptors = $this->createMock(PropertyGenerator::class);
Expand Down

0 comments on commit 99542a2

Please sign in to comment.