|
13 | 13 |
|
14 | 14 | namespace phpDocumentor\Reflection; |
15 | 15 |
|
16 | | -use Mockery as m; |
17 | 16 | use phpDocumentor\Reflection\Types\Array_; |
18 | 17 | use phpDocumentor\Reflection\Types\Boolean; |
19 | 18 | use phpDocumentor\Reflection\Types\ClassString; |
|
35 | 34 | */ |
36 | 35 | class TypeResolverTest extends TestCase |
37 | 36 | { |
38 | | - /** |
39 | | - * Call Mockery::close after each test. |
40 | | - */ |
41 | | - public function tearDown() : void |
42 | | - { |
43 | | - m::close(); |
44 | | - } |
45 | | - |
46 | 37 | /** |
47 | 38 | * @uses \phpDocumentor\Reflection\Types\Context |
48 | 39 | * @uses \phpDocumentor\Reflection\Types\Array_ |
@@ -146,13 +137,13 @@ public function testResolvingRelativeQSENsBasedOnNamespaceAlias() : void |
146 | 137 | $fixture = new TypeResolver(); |
147 | 138 |
|
148 | 139 | $resolvedType = $fixture->resolve( |
149 | | - 'm\MockInterface', |
150 | | - new Context('phpDocumentor\Reflection', ['m' => m::class]) |
| 140 | + 'm\Array_', |
| 141 | + new Context('phpDocumentor\Reflection', ['m' => '\phpDocumentor\Reflection\Types']) |
151 | 142 | ); |
152 | 143 |
|
153 | 144 | $this->assertInstanceOf(Object_::class, $resolvedType); |
154 | 145 | $this->assertInstanceOf(Fqsen::class, $resolvedType->getFqsen()); |
155 | | - $this->assertSame('\Mockery\MockInterface', (string) $resolvedType); |
| 146 | + $this->assertSame('\phpDocumentor\Reflection\Types\Array_', (string) $resolvedType); |
156 | 147 | } |
157 | 148 |
|
158 | 149 | /** |
@@ -645,7 +636,7 @@ public function testResolvingCompoundTypesWithTwoArrays() : void |
645 | 636 | public function testAddingAKeyword() : void |
646 | 637 | { |
647 | 638 | // Assign |
648 | | - $typeMock = m::mock(Type::class); |
| 639 | + $typeMock = self::createStub(Type::class); |
649 | 640 |
|
650 | 641 | // Act |
651 | 642 | $fixture = new TypeResolver(); |
|
0 commit comments