Skip to content

Commit

Permalink
Tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
misantron committed Feb 25, 2015
1 parent 7a6ea62 commit c86695e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 20 deletions.
14 changes: 0 additions & 14 deletions src/Utility/Test/AbstractTest.php

This file was deleted.

11 changes: 9 additions & 2 deletions tests/UArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@

use Utility\Exception\InvalidArgumentException;
use Utility\Exception\NonStaticCallException;
use Utility\Test\AbstractTest;
use Utility\UArray;

class UArrayTest extends AbstractTest
class UArrayTest extends \PHPUnit_Framework_TestCase
{
public function setup()
{
$vendorAutoloadPath = dirname(__FILE__) . '/../vendor/autoload.php';
if (file_exists($vendorAutoloadPath)) {
require_once $vendorAutoloadPath;
}
}

public function testConstructor()
{
try {
Expand Down
11 changes: 9 additions & 2 deletions tests/UStringTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
<?php

use Utility\Exception\NonStaticCallException;
use Utility\Test\AbstractTest;
use Utility\UString;

class UStringTest extends AbstractTest
class UStringTest extends \PHPUnit_Framework_TestCase
{
public function setup()
{
$vendorAutoloadPath = dirname(__FILE__) . '/../vendor/autoload.php';
if (file_exists($vendorAutoloadPath)) {
require_once $vendorAutoloadPath;
}
}

public function testConstructor()
{
try {
Expand Down
11 changes: 9 additions & 2 deletions tests/UTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@

use Utility\Exception\InvalidArgumentException;
use Utility\Exception\NonStaticCallException;
use Utility\Test\AbstractTest;
use Utility\UTime;

date_default_timezone_set('UTC');

class UTimeTest extends AbstractTest
class UTimeTest extends \PHPUnit_Framework_TestCase
{
public function setup()
{
$vendorAutoloadPath = dirname(__FILE__) . '/../vendor/autoload.php';
if (file_exists($vendorAutoloadPath)) {
require_once $vendorAutoloadPath;
}
}

public function testConstructor()
{
try {
Expand Down

0 comments on commit c86695e

Please sign in to comment.