Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Commit

Permalink
migrate to PHPUnit6
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasliubinas committed Aug 20, 2017
1 parent 85443e2 commit 73cb97b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/Base.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php

use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ResponseInterface;
use Zend\Diactoros\ServerRequest;
use Zend\Diactoros\Response;
use Zend\Diactoros\Stream;
use Zend\Diactoros\Uri;
use Relay\RelayBuilder;

abstract class Base extends PHPUnit_Framework_TestCase
abstract class Base extends TestCase
{
/**
* @param string $uri
Expand Down
6 changes: 5 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
include_once dirname(__DIR__).'/vendor/autoload.php';
include_once __DIR__.'/Base.php';

PHPUnit_Framework_Error_Notice::$enabled = true;
if (class_exists('PHPUnit\Framework\Error\Notice')) {
PHPUnit\Framework\Error\Notice::$enabled = true;
} else {
PHPUnit_Framework_Error_Notice::$enabled = true;
}

0 comments on commit 73cb97b

Please sign in to comment.