Revert to pre-1.x series of mockery/mockery for ramsey/uuid 3.x

This commit is contained in:
Ben Ramsey
2018-01-16 19:45:47 -06:00
parent 4f8e6f6c40
commit e67d6bfdc2
2 changed files with 7 additions and 8 deletions
+2 -3
View File
@@ -34,12 +34,11 @@
"phpunit/phpunit": "^4.7|^5.0",
"squizlabs/php_codesniffer": "^2.3",
"jakub-onderka/php-parallel-lint": "^0.9.0",
"mockery/mockery": "^1.0",
"mockery/mockery": "^0.9.9",
"goaop/framework": "1.0.0-alpha.2 | ^1.0 | ^2.1",
"doctrine/annotations": "~1.2.0",
"codeception/aspect-mock": "^1.0 | ~2.0.0",
"php-mock/php-mock-phpunit": "^0.3|^1.1",
"hamcrest/hamcrest-php": "^2.0"
"php-mock/php-mock-phpunit": "^0.3|^1.1"
},
"suggest": {
"ircmaxell/random-lib": "Provides RandomLib for use with the RandomLibAdapter",
@@ -227,11 +227,11 @@ class SystemNodeProviderTest extends TestCase
$provider->shouldReceive('getNode')->passthru();
if ($os === 'Linux') {
$provider->expects()->getIfconfig()->never();
$provider->shouldReceive('getIfconfig')->never();
$provider->shouldReceive('getSysfs')->passthru();
} else {
$provider->expects()->getIfconfig()->andReturn(PHP_EOL . '01-02-03-04-05-06' . PHP_EOL);
$provider->expects()->getSysfs()->andReturnFalse();
$provider->shouldReceive('getIfconfig')->once()->andReturn(PHP_EOL . '01-02-03-04-05-06' . PHP_EOL);
$provider->shouldReceive('getSysfs')->once()->andReturn(false);
}
$this->assertEquals('010203040506', $provider->getNode());
@@ -251,7 +251,7 @@ class SystemNodeProviderTest extends TestCase
$provider->shouldReceive('getNode')->passthru();
$provider->shouldReceive('getSysfs')->passthru();
$provider->expects()->getIfconfig()->andReturn(PHP_EOL . '01-02-03-04-05-06' . PHP_EOL);
$provider->shouldReceive('getIfconfig')->once()->andReturn(PHP_EOL . '01-02-03-04-05-06' . PHP_EOL);
$this->assertEquals('010203040506', $provider->getNode());
}
@@ -270,7 +270,7 @@ class SystemNodeProviderTest extends TestCase
$provider->shouldReceive('getNode')->passthru();
$provider->shouldReceive('getSysfs')->passthru();
$provider->expects()->getIfconfig()->andReturn(PHP_EOL . '01-02-03-04-05-06' . PHP_EOL);
$provider->shouldReceive('getIfconfig')->once()->andReturn(PHP_EOL . '01-02-03-04-05-06' . PHP_EOL);
$this->assertEquals('010203040506', $provider->getNode());
}