Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DummyTestCase.php
Go to the documentation of this file.
1 <?php
7 
8 class DummyTestCase extends \PHPUnit\Framework\TestCase
9 {
13  public $testPublic;
14 
18  private $_testPrivate;
19 
24 
29 
34 
39 
44 
49 
53  public static $testPublicStatic;
54 
58  protected static $_testProtectedStatic;
59 
63  private static $_testPrivateStatic;
64 
65  public function testDummy()
66  {
67  $this->testPublic = 'public';
68  $this->_testPrivate = 'private';
69  $this->_testPropertyBoolean = true;
70  $this->_testPropertyInteger = 10;
71  $this->_testPropertyFloat = 1.97;
72  $this->_testPropertyString = 'string';
73  $this->_testPropertyArray = ['test', 20];
74  self::$testPublicStatic = 'static public';
75  self::$_testProtectedStatic = 'static protected';
76  self::$_testPrivateStatic = 'static private';
77  }
78 
84  public function setPropertyObject($object)
85  {
86  $this->_testPropertyObject = $object;
87  }
88 }