632bac8661
This version ditches backwards compatibility with PHP earlier than 5.6.
16 lines
269 B
PHP
16 lines
269 B
PHP
<?php
|
|
namespace Szurubooru\Tests;
|
|
use Szurubooru\Dao\TransactionManager;
|
|
|
|
final class TransactionManagerMock extends TransactionManager
|
|
{
|
|
public function rollback($callback)
|
|
{
|
|
return $callback();
|
|
}
|
|
|
|
public function commit($callback)
|
|
{
|
|
return $callback();
|
|
}
|
|
}
|