AspectMock teardown into TestCase

This way we don't have to remember to clean the AspectMocks whenever we
use it, it's automatically cleaned.
This commit is contained in:
Jessica Mauerhan
2016-03-24 09:59:52 -04:00
parent 56bb897a88
commit 8be30d6f57
+10
View File
@@ -1,8 +1,18 @@
<?php
namespace Ramsey\Uuid\Test;
use AspectMock\Test as AspectMock;
class TestCase extends \PHPUnit_Framework_TestCase
{
public function tearDown()
{
parent::tearDown();
if (!self::isHhvm()) {
AspectMock::clean();
}
}
protected function skip64BitTest()
{
if (PHP_INT_SIZE == 4) {