szurubooru/tests/TransactionManagerMock.php

17 lines
269 B
PHP
Raw Normal View History

2014-09-14 18:41:14 +02:00
<?php
namespace Szurubooru\Tests;
use Szurubooru\Dao\TransactionManager;
2014-09-14 18:41:14 +02:00
final class TransactionManagerMock extends TransactionManager
2014-09-14 18:41:14 +02:00
{
public function rollback($callback)
{
return $callback();
}
public function commit($callback)
{
return $callback();
}
}