Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing parent::setUp() in tests #372

Merged
merged 1 commit into from
Sep 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/unit/Reflection/ReflectionMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class ReflectionMethodTest extends TestCase

public function setUp() : void
{
parent::setUp();

global $loader;
$this->astLocator = BetterReflectionSingleton::instance()->astLocator();
$this->reflector = new ClassReflector(new ComposerSourceLocator($loader, $this->astLocator));
Expand Down
2 changes: 2 additions & 0 deletions test/unit/Reflection/ReflectionParameterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class ReflectionParameterTest extends TestCase

public function setUp() : void
{
parent::setUp();

global $loader;

$this->astLocator = BetterReflectionSingleton::instance()->astLocator();
Expand Down
2 changes: 2 additions & 0 deletions test/unit/Reflection/ReflectionPropertyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class ReflectionPropertyTest extends TestCase

public function setUp() : void
{
parent::setUp();

global $loader;

$this->astLocator = BetterReflectionSingleton::instance()->astLocator();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class ReflectionClassConstantStringCastTest extends TestCase

protected function setUp() : void
{
parent::setUp();

$this->astLocator = BetterReflectionSingleton::instance()->astLocator();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class ReflectionClassStringCastTest extends TestCase

protected function setUp() : void
{
parent::setUp();

$this->astLocator = BetterReflectionSingleton::instance()->astLocator();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class ReflectionFunctionStringCastTest extends TestCase

protected function setUp() : void
{
parent::setUp();

$betterReflection = BetterReflectionSingleton::instance();

$this->astLocator = $betterReflection->astLocator();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ReflectionMethodStringCastTest extends TestCase

protected function setUp() : void
{
parent::setUp();

$this->astLocator = BetterReflectionSingleton::instance()->astLocator();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class ReflectionParameterStringCastTest extends TestCase

protected function setUp() : void
{
parent::setUp();

$this->astLocator = BetterReflectionSingleton::instance()->astLocator();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class ReflectionPropertyStringCastTest extends TestCase

protected function setUp() : void
{
parent::setUp();

$this->astLocator = BetterReflectionSingleton::instance()->astLocator();
}

Expand Down
2 changes: 2 additions & 0 deletions test/unit/SourceLocator/Reflection/SourceStubberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class SourceStubberTest extends TestCase
*/
protected function setUp() : void
{
parent::setUp();

$this->stubber = new SourceStubber();
}

Expand Down
2 changes: 2 additions & 0 deletions test/unit/SourceLocator/Type/DirectoriesSourceLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class DirectoriesSourceLocatorTest extends TestCase

public function setUp() : void
{
parent::setUp();

$this->sourceLocator = new DirectoriesSourceLocator(
[
__DIR__ . '/../../Assets/DirectoryScannerAssets',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class FileIteratorSourceLocatorTest extends TestCase
*/
public function setUp() : void
{
parent::setUp();

$this->sourceLocator = new FileIteratorSourceLocator(
new RecursiveIteratorIterator(new RecursiveDirectoryIterator(
__DIR__ . '/../../Assets/DirectoryScannerAssets',
Expand Down