-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use dummy persistence instead of mocking dbal connection
- Loading branch information
1 parent
a667bdb
commit c58932a
Showing
2 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace DataAccessKit\Symfony\Fixture; | ||
|
||
use DataAccessKit\PersistenceInterface; | ||
use LogicException; | ||
|
||
class DummyPersistence implements PersistenceInterface | ||
{ | ||
public function query(string $className, string $sql, array $parameters = [], array $parameterTypes = []): iterable | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
|
||
public function select(string $className, string $alias = "t", ?callable $callback = null): iterable | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
|
||
public function insert(object $object): void | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
|
||
public function insertAll(array $objects): void | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
|
||
public function upsert(object $object, ?array $columns = null): void | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
|
||
public function upsertAll(array $objects, ?array $columns = null): void | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
|
||
public function update(object $object, ?array $columns = null): void | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
|
||
public function delete(object $object): void | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
|
||
public function deleteAll(array $objects): void | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
|
||
public function transactional(callable $callback): mixed | ||
{ | ||
throw new LogicException("Not implemented"); | ||
} | ||
} |