Skip to content

Commit

Permalink
Update phpunit library version.
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepat committed Mar 22, 2019
1 parent bc36c6a commit 37e0ea5
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
}
],
"require": {
"php": ">=7.1.0",
"illuminate/database": "5.5.*|5.6.*|5.7.*|5.8.*|5.9.*",
"illuminate/events": "5.5.*|5.6.*|5.7.*|5.8.*|5.9.*",
"doctrine/dbal": "^2.9"
"php": ">=7.0.0",
"illuminate/database": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
"illuminate/events": "~5.5.0|~5.6.0|~5.7.0|~5.8.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"mockery/mockery": "~0.9",
"d11wtq/boris": "~1.0.10"
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^7.0",
"d11wtq/boris": "~1.0.10",
"doctrine/dbal": "^2.9"
},
"autoload": {
"psr-4": {
Expand Down
13 changes: 7 additions & 6 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap.php"
beStrictAboutTestsThatDoNotTestAnything="false"
bootstrap="./bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
syntaxCheck="false">
verbose="true">
<testsuites>
<testsuite name="Baum Test Suite">
<file>tests/suite/QueryBuilderExtensionTest.php</file>
<file>tests/suite/NodeModelExtensionsTest.php</file>
<directory>tests/suite/Category</directory>
<directory>tests/suite/Cluster</directory>
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>
4 changes: 3 additions & 1 deletion tests/suite/BaumTestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class BaumTestCase extends PHPUnit_Framework_TestCase {
use PHPUnit\Framework\TestCase;

class BaumTestCase extends TestCase {

public function assertArraysAreEqual($expected, $actual, $message = '') {
$ex = var_export($expected, true);
Expand Down
3 changes: 2 additions & 1 deletion tests/suite/NodeModelExtensionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

use Mockery as m;
use Illuminate\Database\Capsule\Manager as DB;
use PHPUnit\Framework\TestCase;

class NodeModelExtensionsTest extends PHPUnit_Framework_TestCase {
class NodeModelExtensionsTest extends TestCase {

public static function setUpBeforeClass() {
with(new CategoryMigrator)->up();
Expand Down
3 changes: 2 additions & 1 deletion tests/suite/QueryBuilderExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
use Illuminate\Database\Query\Grammars\Grammar;
use Illuminate\Database\Query\Processors\Processor;
use Baum\Extensions\Query\Builder;
use PHPUnit\Framework\TestCase;

class QueryBuilderExtensionTest extends PHPUnit_Framework_TestCase {
class QueryBuilderExtensionTest extends TestCase {

public function tearDown() {
m::close();
Expand Down

0 comments on commit 37e0ea5

Please sign in to comment.