Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 3d6365e

Browse files
committed
Renamed new test cases to describe behavior tested
1 parent 928ed08 commit 3d6365e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/CommonServiceLocatorBehaviorsTrait.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function testCanCreateServiceWithAbstractFactory()
140140
$serviceManager->get(DateTime::class);
141141
}
142142

143-
public function testCallTwiceWithDifferentInstanceAbstractFactories()
143+
public function testAllowsMultipleInstancesOfTheSameAbstractFactory()
144144
{
145145
CallTimesAbstractFactory::setCallTimes(0);
146146

@@ -160,10 +160,7 @@ public function testCallTwiceWithDifferentInstanceAbstractFactories()
160160
$this->assertEquals(2, CallTimesAbstractFactory::getCallTimes());
161161
}
162162

163-
/**
164-
* A new test with the same instance of `CallTimesAbstractFactory` should be provided.
165-
*/
166-
public function testCallOnlyOnceWithSameInstanceAbstractFactory()
163+
public function testWillReUseAnExistingNamedAbstractFactoryInstance()
167164
{
168165
CallTimesAbstractFactory::setCallTimes(0);
169166

0 commit comments

Comments
 (0)