File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ class {{ shortName }} extends TestCase
20
20
private ${{ property . propertyName }};
21
21
22
22
{% endfor % }
23
-
24
23
{% for testMethod in testClassMetadata . testMethods % }
25
24
public function test {{ testMethod . methodName | slice(0 , 1 )| upper }}{{ testMethod . methodName | slice(1 ) }}() : void
26
25
{
@@ -36,10 +35,11 @@ class {{ shortName }} extends TestCase
36
35
$this -> {{ body . parameterName }}-> {{ body . methodName }}(
37
36
{% for parameter in body . parameters % }
38
37
${{ parameter }}{% if not loop . last % },{% endif % }
38
+
39
39
{% endfor % }
40
- );
40
+ );
41
41
{% endif % }
42
- {% endfor % }
42
+ {% endfor % }
43
43
44
44
}
45
45
@@ -52,6 +52,7 @@ class {{ shortName }} extends TestCase
52
52
{% for setUpDependency in testClassMetadata . setUpDependencies if setUpDependency . type == ' normal' % }
53
53
$this -> {{ setUpDependency . propertyName }} = {{ setUpDependency . propertyValue }};
54
54
{% endfor % }
55
+
55
56
{% for setUpDependency in testClassMetadata . setUpDependencies if setUpDependency . type == ' sut' % }
56
57
{% if setUpDependency . parameters | length > 0 % }
57
58
$this -> {{ setUpDependency . propertyName }} = new {{ setUpDependency . propertyType }}(
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ public function getTestStringArgument() : string
50
50
return $ this ->testStringArgument ;
51
51
}
52
52
53
+ public function getTestMethodWithArguments (string $ a , float $ b , int $ c ) : void
54
+ {
55
+ }
56
+
53
57
public function getSomething () : string
54
58
{
55
59
return 'something ' ;
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ class TestClassTest extends TestCase
39
39
/** @var TestClass */
40
40
private $testClass;
41
41
42
-
43
42
public function testGetTestDependency() : void
44
43
{
45
44
$this->testClass->getTestDependency();
@@ -60,6 +59,19 @@ public function testGetTestStringArgument() : void
60
59
$this->testClass->getTestStringArgument();
61
60
}
62
61
62
+ public function testGetTestMethodWithArguments() : void
63
+ {
64
+ $a = '';
65
+ $b = '';
66
+ $c = '';
67
+ $this->testClass->getTestMethodWithArguments(
68
+ $a,
69
+ $b,
70
+ $c
71
+ );
72
+
73
+ }
74
+
63
75
public function testGetSomething() : void
64
76
{
65
77
$this->testClass->getSomething();
@@ -71,6 +83,7 @@ protected function setUp() : void
71
83
$this->testFloatArgument = 1.0;
72
84
$this->testIntegerArgument = 1;
73
85
$this->testStringArgument = '';
86
+
74
87
$this->testClass = new TestClass(
75
88
$this->testDependency,
76
89
$this->testFloatArgument,
You can’t perform that action at this time.
0 commit comments