mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Merge pull request #134 from localheinz/fix/visibility
Fix: Reduce visibility of setUp() and tearDown()
This commit is contained in:
@@ -22,7 +22,7 @@ class GuidStringCodecTest extends TestCase
|
||||
/** @var array */
|
||||
private $fields;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->builder = $this->getMock('Ramsey\Uuid\Builder\UuidBuilderInterface');
|
||||
@@ -35,7 +35,7 @@ class GuidStringCodecTest extends TestCase
|
||||
'node' => '1234abcd4321'];
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
$this->builder = null;
|
||||
|
||||
@@ -26,7 +26,7 @@ class OrderedTimeCodecTest extends TestCase
|
||||
/** @var string */
|
||||
private $optimizedHex = '11d8eebc58e0a7d796690800200c9a66';
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->builder = $this->getMock('Ramsey\Uuid\Builder\UuidBuilderInterface');
|
||||
@@ -39,7 +39,7 @@ class OrderedTimeCodecTest extends TestCase
|
||||
'node' => '0800200c9a66'];
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
$this->builder = null;
|
||||
|
||||
@@ -24,7 +24,7 @@ class StringCodecTest extends TestCase
|
||||
/** @var string */
|
||||
private $uuidString = '12345678-1234-abcd-abef-1234abcd4321';
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->builder = $this->getMock('Ramsey\Uuid\Builder\UuidBuilderInterface');
|
||||
@@ -37,7 +37,7 @@ class StringCodecTest extends TestCase
|
||||
'node' => '1234abcd4321'];
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
$this->builder = null;
|
||||
|
||||
@@ -18,7 +18,7 @@ class TimestampFirstCombCodecTest extends TestCase
|
||||
*/
|
||||
private $builderMock;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
$this->builderMock = $this->getMock('Ramsey\Uuid\Builder\UuidBuilderInterface');
|
||||
$this->codec = new TimestampFirstCombCodec($this->builderMock);
|
||||
|
||||
@@ -18,7 +18,7 @@ class TimestampLastCombCodecTest extends TestCase
|
||||
*/
|
||||
private $builderMock;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
$this->builderMock = $this->getMock('Ramsey\Uuid\Builder\UuidBuilderInterface');
|
||||
$this->codec = new TimestampLastCombCodec($this->builderMock);
|
||||
|
||||
@@ -28,7 +28,7 @@ class DefaultTimeGeneratorTest extends TestCase
|
||||
private $clockSeq = 4066;
|
||||
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->timeProvider = $this->getMock('Ramsey\Uuid\Provider\TimeProviderInterface');
|
||||
@@ -38,7 +38,7 @@ class DefaultTimeGeneratorTest extends TestCase
|
||||
$this->calculatedTime = ["low" => "83cb98e0", "mid" => "98e0", "hi" => "03cb"];
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
$this->timeProvider = null;
|
||||
|
||||
@@ -13,7 +13,7 @@ use AspectMock\Test as AspectMock;
|
||||
*/
|
||||
class OpenSslGeneratorTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
$this->skipIfHhvm();
|
||||
parent::setUp();
|
||||
|
||||
@@ -16,7 +16,7 @@ class PeclUuidTestCase extends TestCase
|
||||
protected $uuidString = 'b08c6fff-7dc5-e111-9b21-0800200c9a66';
|
||||
protected $uuidBinary = '62303863366666662d376463352d653131312d396232312d303830303230306339613636';
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
$this->skipIfHhvm();
|
||||
parent::setUp();
|
||||
|
||||
@@ -13,7 +13,7 @@ use AspectMock\Test as AspectMock;
|
||||
*/
|
||||
class RandomBytesGeneratorTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
$this->skipIfHhvm();
|
||||
parent::setUp();
|
||||
|
||||
@@ -7,7 +7,7 @@ use Ramsey\Uuid\Generator\SodiumRandomGenerator;
|
||||
|
||||
class SodiumRandomGeneratorTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
if (!extension_loaded('libsodium')) {
|
||||
$this->markTestSkipped(
|
||||
|
||||
@@ -11,13 +11,13 @@ class RandomNodeProviderTest extends TestCase
|
||||
private $num = 16532480;
|
||||
private $node = 'fc4400fc4400';
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
$this->skipIfHhvm();
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
AspectMock::clean();
|
||||
|
||||
@@ -6,7 +6,7 @@ use Mockery;
|
||||
|
||||
class TestCase extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function tearDown()
|
||||
protected function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
if (!self::isHhvm()) {
|
||||
|
||||
Reference in New Issue
Block a user