Преглед изворни кода

removed tests unused imports

develop
Robin Thoni пре 8 година
родитељ
комит
3d0663edea

+ 0
- 3
tests/DatabaseTest.php Прегледај датотеку

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

+ 0
- 1
tests/LuBoolDboArrayTest.php Прегледај датотеку

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

+ 0
- 1
tests/LuDateTimeDboArrayTest.php Прегледај датотеку

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

+ 0
- 1
tests/LuFloatDboArrayTest.php Прегледај датотеку

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

+ 0
- 1
tests/LuIntDboArrayTest.php Прегледај датотеку

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

+ 0
- 1
tests/LuRouteTest.php Прегледај датотеку

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

+ 0
- 1
tests/LuStringDboArrayTest.php Прегледај датотеку

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

+ 0
- 28
tests/TestBusiness.php Прегледај датотеку

@@ -1,28 +0,0 @@
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 Прегледај датотеку

@@ -1,41 +0,0 @@
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…
Откажи
Сачувај