Skip to content

Commit 11ee12e

Browse files
committed
Update tests
1 parent 9f60e44 commit 11ee12e

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

tests/ConfigurationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
2-
namespace PhpOrm;
2+
namespace PhpOrm\Tests;
33

44
use PHPUnit\Framework\TestCase;
5+
use PhpOrm\Configuration;
56

67
class ConfigurationTest extends TestCase
78
{

tests/ConnectionTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
2-
namespace PhpOrm;
2+
namespace PhpOrm\Tests;
33

44
use PHPUnit\Framework\TestCase;
5+
use PhpOrm\Connection;
6+
use PhpOrm\Configuration;
57

68
class ConnectionTest extends TestCase
79
{

tests/DBTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
2-
namespace PhpOrm;
2+
namespace PhpOrm\Tests;
33

44
use PHPUnit\Framework\TestCase;
5+
use PhpOrm\DB;
56

67
class DBTest extends TestCase
78
{

tests/ExpressionTest.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
<?php
2-
namespace PhpOrm;
2+
namespace PhpOrm\Tests;
33

44
use PHPUnit\Framework\TestCase;
5+
use PhpOrm\Expression;
56

67
class ExpressionTest extends TestCase
78
{
9+
public function testAttributes()
10+
{
11+
$attributes = array(
12+
'value',
13+
);
14+
foreach ($attributes as $attribute) {
15+
$this->assertClassHasAttribute($attribute, Expression::class);
16+
}
17+
}
18+
819
public function testString()
920
{
1021
$stub = $this->createMock(Expression::class);

0 commit comments

Comments
 (0)