for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Tarantool Client package.
*
* (c) Eugene Leonovich <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Tarantool\Client\Tests\Integration;
use Tarantool\Client\Schema\Criteria;
* @eval create_space('test_space_caching'):create_index('primary', {type = 'tree', parts = {1, 'unsigned'}})
final class ClientSpaceCachingTest extends TestCase
{
public function testCacheSpace() : void
$total = self::getTotalCalls(self::STAT_REQUEST_SELECT);
$this->client->flushSpaces();
$this->client->getSpace('test_space_caching')->select(Criteria::key([]));
self::assertSame(3, self::getTotalCalls(self::STAT_REQUEST_SELECT) - $total);
}
public function testFlushSpaces() : void
self::assertSame(4, self::getTotalCalls(self::STAT_REQUEST_SELECT) - $total);