@@ -16,7 +16,7 @@ public function test_it_should_create_builder_with_dependency_and_interface(): v
16
16
{
17
17
$ FQCN = 'HappyIsland ' ;
18
18
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
19
- $ classDescriptionBuilder ->setClassName ($ FQCN );
19
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
20
20
21
21
$ classDependency = new ClassDependency ('DepClass ' , 10 );
22
22
@@ -35,7 +35,7 @@ public function test_it_should_create_final_class(): void
35
35
{
36
36
$ FQCN = 'HappyIsland ' ;
37
37
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
38
- $ classDescriptionBuilder ->setClassName ($ FQCN );
38
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
39
39
$ classDescriptionBuilder ->setFinal (true );
40
40
41
41
$ classDescription = $ classDescriptionBuilder ->build ();
@@ -49,7 +49,7 @@ public function test_it_should_create_not_final_class(): void
49
49
{
50
50
$ FQCN = 'HappyIsland ' ;
51
51
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
52
- $ classDescriptionBuilder ->setClassName ($ FQCN );
52
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
53
53
$ classDescriptionBuilder ->setFinal (false );
54
54
55
55
$ classDescription = $ classDescriptionBuilder ->build ();
@@ -63,7 +63,7 @@ public function test_it_should_create_abstract_class(): void
63
63
{
64
64
$ FQCN = 'HappyIsland ' ;
65
65
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
66
- $ classDescriptionBuilder ->setClassName ($ FQCN );
66
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
67
67
$ classDescriptionBuilder ->setAbstract (true );
68
68
69
69
$ classDescription = $ classDescriptionBuilder ->build ();
@@ -77,7 +77,7 @@ public function test_it_should_create_not_abstract_class(): void
77
77
{
78
78
$ FQCN = 'HappyIsland ' ;
79
79
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
80
- $ classDescriptionBuilder ->setClassName ($ FQCN );
80
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
81
81
$ classDescriptionBuilder ->setAbstract (false );
82
82
83
83
$ classDescription = $ classDescriptionBuilder ->build ();
@@ -91,7 +91,7 @@ public function test_it_should_create_annotated_class(): void
91
91
{
92
92
$ FQCN = 'HappyIsland ' ;
93
93
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
94
- $ classDescriptionBuilder ->setClassName ($ FQCN );
94
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
95
95
$ classDescriptionBuilder ->addDocBlock ('/**
96
96
* @psalm-immutable
97
97
*/ ' );
@@ -112,7 +112,7 @@ public function test_it_should_add_attributes(): void
112
112
{
113
113
$ FQCN = 'HappyIsland ' ;
114
114
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
115
- $ classDescriptionBuilder ->setClassName ($ FQCN );
115
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
116
116
$ classDescriptionBuilder ->addAttribute ('AttrClass ' , 27 );
117
117
118
118
$ classDescription = $ classDescriptionBuilder ->build ();
@@ -127,7 +127,7 @@ public function test_it_should_create_interface(): void
127
127
{
128
128
$ FQCN = 'HappyIsland ' ;
129
129
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
130
- $ classDescriptionBuilder ->setClassName ($ FQCN );
130
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
131
131
$ classDescriptionBuilder ->setInterface (true );
132
132
133
133
$ classDescription = $ classDescriptionBuilder ->build ();
@@ -141,7 +141,7 @@ public function test_it_should_create_not_interface(): void
141
141
{
142
142
$ FQCN = 'HappyIsland ' ;
143
143
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
144
- $ classDescriptionBuilder ->setClassName ($ FQCN );
144
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
145
145
$ classDescriptionBuilder ->setInterface (false );
146
146
147
147
$ classDescription = $ classDescriptionBuilder ->build ();
@@ -155,7 +155,7 @@ public function test_it_should_create_trait(): void
155
155
{
156
156
$ FQCN = 'HappyIsland ' ;
157
157
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
158
- $ classDescriptionBuilder ->setClassName ($ FQCN );
158
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
159
159
$ classDescriptionBuilder ->setTrait (true );
160
160
161
161
$ classDescription = $ classDescriptionBuilder ->build ();
@@ -169,7 +169,7 @@ public function test_it_should_create_not_trait(): void
169
169
{
170
170
$ FQCN = 'HappyIsland ' ;
171
171
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
172
- $ classDescriptionBuilder ->setClassName ($ FQCN );
172
+ $ classDescriptionBuilder ->setFilePath ( ' src/Foo.php ' )-> setClassName ($ FQCN );
173
173
$ classDescriptionBuilder ->setTrait (false );
174
174
175
175
$ classDescription = $ classDescriptionBuilder ->build ();
0 commit comments