Skip to content

Commit

Permalink
Merge pull request #1170 from jrfnl/feature/php-8.2-tests-explicitly-…
Browse files Browse the repository at this point in the history
…declare-properties

PHP 8.2 | Various tests: explicitly declare properties
  • Loading branch information
davedevelopment committed Apr 12, 2022
2 parents 5ea6075 + 358c21a commit 69e0b0f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 0 deletions.
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

0 comments on commit 69e0b0f

Please sign in to comment.