for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Domain\EventSourcing\Tests\Units\Versioning;
use Cubiche\Domain\EventSourcing\Tests\Fixtures\PostEventSourced;
use Cubiche\Domain\EventSourcing\Tests\Units\TestCase;
use Cubiche\Domain\EventSourcing\Versioning\VersionStoreInterface;
* VersionStoreTestCase class.
* Generated by TestGenerator on 2016-07-29 at 12:24:22.
abstract class VersionStoreTestCase extends TestCase
{
* @return VersionStoreInterface
abstract protected function createStore();
* Test persist method.
public function testPersist()
$this
->given($store = $this->createStore())
->when($store->persist(PostEventSourced::class, 10))
->then()
->integer($store->load(PostEventSourced::class))
->isEqualTo(10)
;
}
* Test load method.
public function testLoad()
->isEqualTo(0)