@@ -88,15 +88,15 @@ public function testCanEnableSharedForSingleService()
88
88
$ this ->assertSame ($ object1 , $ object2 );
89
89
}
90
90
91
- public function testCanCreateObjectWithInvokableFactory ()
91
+ public function testCanBuildObjectWithInvokableFactory ()
92
92
{
93
93
$ serviceManager = new ServiceManager ([
94
94
'factories ' => [
95
95
InvokableObject::class => InvokableFactory::class
96
96
]
97
97
]);
98
98
99
- $ object = $ serviceManager ->get (InvokableObject::class, ['foo ' => 'bar ' ]);
99
+ $ object = $ serviceManager ->build (InvokableObject::class, ['foo ' => 'bar ' ]);
100
100
101
101
$ this ->assertInstanceOf (InvokableObject::class, $ object );
102
102
$ this ->assertEquals (['foo ' => 'bar ' ], $ object ->options );
@@ -174,7 +174,7 @@ public function testCanCheckServiceExistenceWithCheckingAbstractFactories()
174
174
$ this ->assertTrue ($ serviceManager ->has (DateTime::class, true ));
175
175
}
176
176
177
- public function testNeverShareIfOptionsArePassed ()
177
+ public function testBuildNeverSharesInstances ()
178
178
{
179
179
$ serviceManager = new ServiceManager ([
180
180
'factories ' => [
@@ -185,8 +185,8 @@ public function testNeverShareIfOptionsArePassed()
185
185
]
186
186
]);
187
187
188
- $ object1 = $ serviceManager ->get (stdClass::class);
189
- $ object2 = $ serviceManager ->get (stdClass::class, ['foo ' => 'bar ' ]);
188
+ $ object1 = $ serviceManager ->build (stdClass::class);
189
+ $ object2 = $ serviceManager ->build (stdClass::class, ['foo ' => 'bar ' ]);
190
190
191
191
$ this ->assertNotSame ($ object1 , $ object2 );
192
192
}
0 commit comments