mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user