Skip to content

Commit 658a8a0

Browse files
Merge branch '2.7' into 2.8
* 2.7: Fix getMock usage
2 parents 9746314 + 52eeddc commit 658a8a0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Symfony/Component/Form/Tests/FormRegistryTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ public function testGetTypeWithTypeExtensions()
159159
$this->assertSame($resolvedType, $this->registry->getType(get_class($type)));
160160
}
161161

162+
/**
163+
* @group legacy
164+
*/
162165
public function testLegacyGetTypeWithTypeExtensions()
163166
{
164167
$type = new LegacyFooType();
@@ -201,6 +204,9 @@ public function testGetTypeConnectsParent()
201204
$this->assertSame($resolvedType, $this->registry->getType(get_class($type)));
202205
}
203206

207+
/**
208+
* @group legacy
209+
*/
204210
public function testLegacyGetTypeConnectsParent()
205211
{
206212
$parentType = new LegacyFooType();
@@ -286,6 +292,9 @@ public function testDoesNotHaveTypeIfNoFormType()
286292
$this->assertFalse($this->registry->hasType('stdClass'));
287293
}
288294

295+
/**
296+
* @group legacy
297+
*/
289298
public function testLegacyHasTypeAfterLoadingFromExtension()
290299
{
291300
$type = new LegacyFooType();

src/Symfony/Component/Validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function testReadMetadataFromCache()
150150

151151
public function testMetadataCacheWithRuntimeConstraint()
152152
{
153-
$cache = $this->getMock('Symfony\Component\Validator\Mapping\Cache\CacheInterface');
153+
$cache = $this->getMockBuilder('Symfony\Component\Validator\Mapping\Cache\CacheInterface')->getMock();
154154
$factory = new LazyLoadingMetadataFactory(new TestLoader(), $cache);
155155

156156
$cache

0 commit comments

Comments
 (0)