for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\TDBM;
class StandardObjectStorageTest extends \PHPUnit_Framework_TestCase
{
public function testObjectStorage()
$objectStorage = new StandardObjectStorage();
$this->assertNull($objectStorage->get('foo', 42));
$dbRow = $this->createMock(DbRow::class);
$objectStorage->set('foo', 42, $dbRow);
$this->assertSame($dbRow, $objectStorage->get('foo', 42));
$objectStorage->remove('foo', 42);
}