2014-09-14 18:41:14 +02:00
|
|
|
<?php
|
|
|
|
namespace Szurubooru\Tests;
|
2014-10-08 14:47:47 +02:00
|
|
|
use Szurubooru\Dao\TransactionManager;
|
2014-09-14 18:41:14 +02:00
|
|
|
|
2014-10-08 14:47:47 +02:00
|
|
|
final class TransactionManagerMock extends TransactionManager
|
2014-09-14 18:41:14 +02:00
|
|
|
{
|
2015-11-25 09:48:03 +01:00
|
|
|
public function rollback($callback)
|
|
|
|
{
|
|
|
|
return $callback();
|
|
|
|
}
|
2014-09-14 18:41:14 +02:00
|
|
|
|
2015-11-25 09:48:03 +01:00
|
|
|
public function commit($callback)
|
|
|
|
{
|
|
|
|
return $callback();
|
|
|
|
}
|
2014-09-14 18:41:14 +02:00
|
|
|
}
|