Skip to content

Commit

Permalink
Updates test suite for phpunit 6, adds vagrant file
Browse files Browse the repository at this point in the history
  • Loading branch information
hollodotme committed Feb 23, 2017
1 parent c784a19 commit 17ac4d3
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
/.idea/
/.vagrant/
/vendor/
/build/logs/
12 changes: 12 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

# box-config
config.vm.box = "DreiWolt/devops007"

# network-config
config.vm.network :private_network, ip: "192.168.3.13"
config.vm.hostname = "FCGIClient"

end
7 changes: 1 addition & 6 deletions build/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<phpunit
bootstrap="../tests/Unit/bootstrap.php"
bootstrap="../tests/bootstrap.php"
verbose="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestSize="true"
Expand All @@ -16,11 +16,6 @@
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../src</directory>
</whitelist>
<blacklist>
<directory suffix=".php">../tests/Unit</directory>
<directory>../tests/Unit/Fixtures</directory>
<directory>../vendor</directory>
</blacklist>
</filter>
<logging>
<log type="coverage-html" target="logs/coverage"/>
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
"extra": {
"tools": {
"phpunit": {
"url": "https://phar.phpunit.de/phpunit.phar",
"url": "https://phar.phpunit.de/phpunit-6.0.7.phar",
"only-dev": true
},
"coveralls": {
"url": "https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar",
"only-dev": true
},
"phpmetrics": {
"url": "https://github.com/phpmetrics/PhpMetrics/releases/download/v2.0.0-rc/phpmetrics.phar",
"url": "https://github.com/phpmetrics/PhpMetrics/releases/download/v2.0.0/phpmetrics.phar",
"only-dev": true
}
}
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/Unit/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use hollodotme\FastCGI\Client;
use hollodotme\FastCGI\SocketConnections\UnixDomainSocket;

class ClientTest extends \PHPUnit_Framework_TestCase
class ClientTest extends \PHPUnit\Framework\TestCase
{
/**
* @expectedException \hollodotme\FastCGI\Exceptions\ConnectException
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Encoders/NameValuePairEncoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

use hollodotme\FastCGI\Encoders\NameValuePairEncoder;

class NameValuePairEncoderTest extends \PHPUnit_Framework_TestCase
class NameValuePairEncoderTest extends \PHPUnit\Framework\TestCase
{
/**
* @param array $pairs
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Encoders/PacketEncoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

use hollodotme\FastCGI\Encoders\PacketEncoder;

class PacketEncoderTest extends \PHPUnit_Framework_TestCase
class PacketEncoderTest extends \PHPUnit\Framework\TestCase
{
/**
* @param int $type
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/SocketConnections/NetworkSocketTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use hollodotme\FastCGI\SocketConnections\Defaults;
use hollodotme\FastCGI\SocketConnections\NetworkSocket;

class NetworkSocketTest extends \PHPUnit_Framework_TestCase
class NetworkSocketTest extends \PHPUnit\Framework\TestCase
{
public function testImplementsConnectionInterface()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/SocketConnections/UnixDomainSocketTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use hollodotme\FastCGI\SocketConnections\Defaults;
use hollodotme\FastCGI\SocketConnections\UnixDomainSocket;

class UnixDomainSocketTest extends \PHPUnit_Framework_TestCase
class UnixDomainSocketTest extends \PHPUnit\Framework\TestCase
{
public function testImplementsConnectionInterface()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Timing/TimerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

use hollodotme\FastCGI\Timing\Timer;

class TimerTest extends \PHPUnit_Framework_TestCase
class TimerTest extends \PHPUnit\Framework\TestCase
{
/**
* @expectedException \hollodotme\FastCGI\Timing\Exceptions\TimerNotStartedException
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/bootstrap.php → tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
* SOFTWARE.
*/

require(__DIR__ . '/../../vendor/autoload.php');
require(__DIR__ . '/../vendor/autoload.php');

0 comments on commit 17ac4d3

Please sign in to comment.