Browse Source

removed tests unused imports

develop
Robin Thoni 8 years ago
parent
commit
3d0663edea

+ 0
- 3
tests/DatabaseTest.php View File

1
 <?php
1
 <?php
2
 use Carbon\Carbon;
2
 use Carbon\Carbon;
3
 use Illuminate\Database\Query\Builder;
3
 use Illuminate\Database\Query\Builder;
4
-use Luticate\Utils\Controller\LuticateApplication;
5
-use Illuminate\Database\Capsule\Manager as Capsule;
6
 use Luticate\Utils\DataAccess\LuDataAccess;
4
 use Luticate\Utils\DataAccess\LuDataAccess;
7
 use Luticate\Utils\DataAccess\LuStoredProcedure;
5
 use Luticate\Utils\DataAccess\LuStoredProcedure;
8
-use Luticate\Utils\DataAccess\PgSqlDataAccess;
9
 use Luticate\Utils\Dbo\LuDbo;
6
 use Luticate\Utils\Dbo\LuDbo;
10
 use Luticate\Utils\Dbo\LuDboDeserializeException;
7
 use Luticate\Utils\Dbo\LuDboDeserializeException;
11
 use Luticate\Utils\Dbo\LuIntDbo;
8
 use Luticate\Utils\Dbo\LuIntDbo;

+ 0
- 1
tests/LuBoolDboArrayTest.php View File

1
 <?php
1
 <?php
2
 use Luticate\Utils\Dbo\LuDboDeserializeException;
2
 use Luticate\Utils\Dbo\LuDboDeserializeException;
3
 use Luticate\Utils\Dbo\LuBoolDboArray;
3
 use Luticate\Utils\Dbo\LuBoolDboArray;
4
-use Luticate\Utils\Dbo\LuIntDbo;
5
 
4
 
6
 /**
5
 /**
7
  * Created by PhpStorm.
6
  * Created by PhpStorm.

+ 0
- 1
tests/LuDateTimeDboArrayTest.php View File

1
 <?php
1
 <?php
2
-use Luticate\Utils\Dbo\LuDateDateTime;
3
 use Luticate\Utils\Dbo\LuDateTimeDboArray;
2
 use Luticate\Utils\Dbo\LuDateTimeDboArray;
4
 use Luticate\Utils\Dbo\LuDboDeserializeException;
3
 use Luticate\Utils\Dbo\LuDboDeserializeException;
5
 
4
 

+ 0
- 1
tests/LuFloatDboArrayTest.php View File

1
 <?php
1
 <?php
2
 use Luticate\Utils\Dbo\LuDboDeserializeException;
2
 use Luticate\Utils\Dbo\LuDboDeserializeException;
3
 use Luticate\Utils\Dbo\LuFloatDboArray;
3
 use Luticate\Utils\Dbo\LuFloatDboArray;
4
-use Luticate\Utils\Dbo\LuFloatDbo;
5
 
4
 
6
 /**
5
 /**
7
  * Created by PhpStorm.
6
  * Created by PhpStorm.

+ 0
- 1
tests/LuIntDboArrayTest.php View File

1
 <?php
1
 <?php
2
 use Luticate\Utils\Dbo\LuDboDeserializeException;
2
 use Luticate\Utils\Dbo\LuDboDeserializeException;
3
 use Luticate\Utils\Dbo\LuIntDboArray;
3
 use Luticate\Utils\Dbo\LuIntDboArray;
4
-use Luticate\Utils\Dbo\LuIntDbo;
5
 
4
 
6
 /**
5
 /**
7
  * Created by PhpStorm.
6
  * Created by PhpStorm.

+ 0
- 1
tests/LuRouteTest.php View File

1
 <?php
1
 <?php
2
 use Luticate\Utils\Business\LuBusinessException;
2
 use Luticate\Utils\Business\LuBusinessException;
3
 use Luticate\Utils\Controller\LuRoute;
3
 use Luticate\Utils\Controller\LuRoute;
4
-use Luticate\Utils\Dbo\LuDboConstraintException;
5
 use Luticate\Utils\Dbo\LuRouteDbo;
4
 use Luticate\Utils\Dbo\LuRouteDbo;
6
 use Luticate\Utils\Dbo\LuStringDbo;
5
 use Luticate\Utils\Dbo\LuStringDbo;
7
 use Luticate\Utils\Middleware\LuAbstractMiddleware;
6
 use Luticate\Utils\Middleware\LuAbstractMiddleware;

+ 0
- 1
tests/LuStringDboArrayTest.php View File

1
 <?php
1
 <?php
2
 use Luticate\Utils\Dbo\LuDboDeserializeException;
2
 use Luticate\Utils\Dbo\LuDboDeserializeException;
3
 use Luticate\Utils\Dbo\LuStringDboArray;
3
 use Luticate\Utils\Dbo\LuStringDboArray;
4
-use Luticate\Utils\Dbo\LuStringDbo;
5
 
4
 
6
 /**
5
 /**
7
  * Created by PhpStorm.
6
  * Created by PhpStorm.

+ 0
- 28
tests/TestBusiness.php View File

1
-<?php
2
-
3
-/**
4
- * Created by PhpStorm.
5
- * User: robin
6
- * Date: 9/27/15
7
- * Time: 5:01 PM
8
- */
9
-
10
-require_once("../vendor/autoload.php");
11
-require_once("TestDataAccess.php");
12
-
13
-function abort($code, $reason)
14
-{
15
-    echo "ABORTED: $code, $reason\n";
16
-    exit;
17
-}
18
-
19
-class TestsBusiness extends \Luticate\Utils\LuBusiness
20
-{
21
-    protected static function getDataAccess()
22
-    {
23
-        return new TestsDataAccess();
24
-    }
25
-}
26
-
27
-var_dump(TestsBusiness::getById(42));
28
-var_dump(TestsBusiness::getById(4242));

+ 0
- 41
tests/TestDataAccess.php View File

1
-<?php
2
-
3
-/**
4
- * Created by PhpStorm.
5
- * User: robin
6
- * Date: 9/27/15
7
- * Time: 5:21 PM
8
- */
9
-
10
-class Tests
11
-{
12
-    private $value = null;
13
-    public function __construct($value = null)
14
-    {
15
-        $this->value = $value;
16
-    }
17
-
18
-    public static function where($col, $operator, $value)
19
-    {
20
-        return new Tests($value);
21
-    }
22
-
23
-    public function first()
24
-    {
25
-        if ($this->value != 42) {
26
-            return null;
27
-        }
28
-        return new Tests($this->value);
29
-    }
30
-    public function toDbo()
31
-    {
32
-        return new Tests($this->value);
33
-    }
34
-}
35
-
36
-class TestsDataAccess extends \Luticate\Utils\LuDataAccess {
37
-    protected static function getModel()
38
-    {
39
-        return new Tests();
40
-    }
41
-}

Loading…
Cancel
Save