Skip to content

Commit d166b08

Browse files
Merge pull request #27 from guiwoda/mockery-phpunit-listener
Integrated Mockery through the TestListener
2 parents b18d1ea + f140959 commit d166b08

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@
2020
<directory suffix=".php">./src</directory>
2121
</whitelist>
2222
</filter>
23+
<listeners>
24+
<listener class="\Mockery\Adapter\Phpunit\TestListener" />
25+
</listeners>
2326
</phpunit>

tests/Mappers/EntityMapperTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,4 @@ public function test_it_should_delegate_the_proper_mapping_to_the_mapping_class(
5050
$this->assertContains(StubEntity::class, $metadata->associationMappings['one']['targetEntity']);
5151
$this->assertContains(StubEntity::class, $metadata->associationMappings['many']['targetEntity']);
5252
}
53-
54-
protected function tearDown()
55-
{
56-
m::close();
57-
}
5853
}

0 commit comments

Comments
 (0)