Skip to content

Commit

Permalink
Fix phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
Big-Shark committed Dec 15, 2019
1 parent 4b0c3c2 commit 6f5bf06
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 20 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
Expand Down
3 changes: 2 additions & 1 deletion tests/Convertet/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
use BigShark\SQLToBuilder\Converter\FromConverter;
use BigShark\SQLToBuilder\Converter\SelectConverter;
use BigShark\SQLToBuilder\Converter\WhereConverter;
use PHPUnit\Framework\TestCase;

class FactoryTest extends \PHPUnit_Framework_TestCase
class FactoryTest extends TestCase
{
public function testCanCreate()
{
Expand Down
6 changes: 4 additions & 2 deletions tests/Convertet/FromTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

namespace BigShark\SQLToBuilder\Test\Converter;

class FromTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class FromTest extends TestCase
{
/**
* @var null|\BigShark\SQLToBuilder\Converter\FromConverter
*/
protected $converter = null;

public function setUp()
public function setUp(): void
{
$this->converter = new \BigShark\SQLToBuilder\Converter\FromConverter();
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Convertet/GroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

namespace BigShark\SQLToBuilder\Test\Converter;

class GroupTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class GroupTest extends TestCase
{
/**
* @var null|\BigShark\SQLToBuilder\Converter\GroupConverter
*/
protected $converter = null;

public function setUp()
public function setUp(): void
{
$this->converter = new \BigShark\SQLToBuilder\Converter\GroupConverter();
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Convertet/LimitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

namespace BigShark\SQLToBuilder\Test\Converter;

class LimitTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class LimitTest extends TestCase
{
/**
* @var null|\BigShark\SQLToBuilder\Converter\LimitConverter
*/
protected $converter = null;

public function setUp()
public function setUp(): void
{
$this->converter = new \BigShark\SQLToBuilder\Converter\LimitConverter();
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Convertet/OrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

namespace BigShark\SQLToBuilder\Test\Converter;

class OrderTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class OrderTest extends TestCase
{
/**
* @var null|\BigShark\SQLToBuilder\Converter\OrderConverter
*/
protected $converter = null;

public function setUp()
public function setUp(): void
{
$this->converter = new \BigShark\SQLToBuilder\Converter\OrderConverter();
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Convertet/SelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

namespace BigShark\SQLToBuilder\Test\Converter;

class SelectTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class SelectTest extends TestCase
{
/**
* @var null|\BigShark\SQLToBuilder\Converter\SelectConverter
*/
protected $converter = null;

public function setUp()
public function setUp(): void
{
$this->converter = new \BigShark\SQLToBuilder\Converter\SelectConverter();
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Convertet/WhereTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace BigShark\SQLToBuilder\Test\Converter;

class WhereTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class WhereTest extends TestCase
{
/**
* @var null|\BigShark\SQLToBuilder\Converter\WhereConverter
Expand All @@ -11,7 +13,7 @@ class WhereTest extends \PHPUnit_Framework_TestCase

protected $baseWhere = [];

public function setUp()
public function setUp(): void
{
$this->converter = new \BigShark\SQLToBuilder\Converter\WhereConverter();

Expand Down
3 changes: 2 additions & 1 deletion tests/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace BigShark\SQLToBuilder\Test;

use BigShark\SQLToBuilder\BuilderClass;
use PHPUnit\Framework\TestCase;

class ExampleTest extends \PHPUnit_Framework_TestCase
class ExampleTest extends TestCase
{
public function testNotCorrectSql()
{
Expand Down
7 changes: 2 additions & 5 deletions tests/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
namespace BigShark\SQLToBuilder\Test;

use BigShark\SQLToBuilder\Generator;
use PHPUnit\Framework\TestCase;

class GeneratorTest extends \PHPUnit_Framework_TestCase
class GeneratorTest extends TestCase
{
public function setUp()
{
}

public function testEmpty()
{
$generator = new Generator('$db');
Expand Down

0 comments on commit 6f5bf06

Please sign in to comment.