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

PHP 8.2 | Various tests: explicitly declare properties #1170

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/Mockery/Adapter/Phpunit/TestListenerTest.php
Expand Up @@ -28,6 +28,11 @@

class TestListenerTest extends MockeryTestCase
{
protected $container;
protected $listener;
protected $testResult;
protected $test;

protected function mockeryTestSetUp()
{
// We intentionally test the static container here. That is what the
Expand Down
2 changes: 2 additions & 0 deletions tests/Mockery/AdhocTest.php
Expand Up @@ -26,6 +26,8 @@
*/
class Mockery_AdhocTest extends MockeryTestCase
{
protected $container;

public function mockeryTestSetUp()
{
$this->container = new \Mockery\Container(\Mockery::getDefaultGenerator(), \Mockery::getDefaultLoader());
Expand Down
2 changes: 2 additions & 0 deletions tests/Mockery/DefaultMatchersTest.php
Expand Up @@ -50,6 +50,8 @@ public function __construct($value)

class DefaultMatchersTest extends MockeryTestCase
{
protected $mock;

public function mockeryTestSetUp()
{
parent::mockeryTestSetUp();
Expand Down
4 changes: 4 additions & 0 deletions tests/Mockery/ExpectationTest.php
Expand Up @@ -28,6 +28,8 @@ class ExpectationTest extends MockeryTestCase
{
use RegExpCompatability;

protected $mock;

public function mockeryTestSetUp()
{
parent::mockeryTestSetUp();
Expand Down Expand Up @@ -2228,6 +2230,8 @@ public function baz()

class Mockery_UseDemeter
{
protected $demeter;

public function __construct($demeter)
{
$this->demeter = $demeter;
Expand Down
Expand Up @@ -28,6 +28,8 @@ class ClassNamePassTest extends MockeryTestCase
{
const CODE = "namespace Mockery; class Mock {}";

protected $pass;

public function mockeryTestSetUp()
{
$this->pass = new ClassNamePass();
Expand Down
Expand Up @@ -28,6 +28,8 @@ class ClassPassTest extends MockeryTestCase
{
const CODE = "class Mock implements MockInterface {}";

protected $pass;

public function mockeryTestSetUp()
{
$this->pass = new ClassPass();
Expand Down
2 changes: 2 additions & 0 deletions tests/Mockery/HamcrestExpectationTest.php
Expand Up @@ -23,6 +23,8 @@

class HamcrestExpectationTest extends MockeryTestCase
{
protected $mock;

public function mockeryTestSetUp()
{
parent::mockeryTestSetUp();
Expand Down
2 changes: 2 additions & 0 deletions tests/Mockery/MockClassWithFinalWakeupTest.php
Expand Up @@ -25,6 +25,8 @@

class MockClassWithFinalWakeupTest extends MockeryTestCase
{
protected $container;

protected function mockeryTestSetUp()
{
$this->container = new \Mockery\Container();
Expand Down