Skip to content

Commit 47f76c7

Browse files
committed
Optimize tests.
1 parent 0114e3e commit 47f76c7

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

src/Connection/ConnectionStrategy.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ public function listen(callable $callable);
8080

8181
/**
8282
* @param string $tableName
83-
* @param bool $force
84-
*
8583
* @return array
8684
*/
8785
public function describe(string $tableName): array;

tests/Clause/WhereClauseTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,15 @@ public function testCanClearExists()
777777
$this->assertNull($query->getExists());
778778
}
779779

780+
public function testCanAddLogic()
781+
{
782+
$query = $this->newQuery();
783+
784+
$query->addWhere('and', '`Foo` = ?', ['foo']);
785+
786+
$this->assertEquals('WHERE `Foo` = ?', (string) $query);
787+
}
788+
780789
public function testCanClone()
781790
{
782791
$query = $this->newQuery()->where('Foo', 'foo');

tests/Connection/MysqlConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class MysqlConnectionTest extends TestCase
2020
{
21-
use PdoMock;
21+
use PdoMockTrait;
2222

2323
/**
2424
* @var MysqlConnection

tests/Connection/PdoMock.php renamed to tests/Connection/PdoMockTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PHPUnit\Framework\MockObject\MockBuilder;
66

7-
trait PdoMock
7+
trait PdoMockTrait
88
{
99
/**
1010
* @var Pdo|\PHPUnit_Framework_MockObject_MockObject

tests/Connection/SqliteConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class SqliteConnectionTest extends TestCase
2020
{
21-
use PdoMock;
21+
use PdoMockTrait;
2222

2323
/**
2424
* @var SqliteConnection

0 commit comments

Comments
 (0)