Fix code style

This commit is contained in:
Vasily Komrakov 2016-05-22 01:27:01 +03:00
commit 510546d054
3 changed files with 3 additions and 23 deletions

View file

@ -61,7 +61,7 @@ class AdapterTest extends \PHPUnit_Framework_TestCase
$this->cacheProvider->expects(self::at(1))->method('doFetch')
->with('namespaceTest[keyTest][1]')->willReturn(false);
$callback = function($cache, $key) {
$callback = function ($cache, $key) {
return [$cache instanceof Adapter, $key];
};

View file

@ -49,8 +49,8 @@ class AdapterTest extends \PHPUnit_Framework_TestCase
->getMock();
$platformMock = $this->getMock(AbstractPlatform::class, ['getName', 'quoteIdentifier', 'quoteValue']);
$platformMock->method('quoteIdentifier')->willReturnCallback(function($v) { return '`' . $v . '`'; });
$platformMock->method('quoteValue')->willReturnCallback(function($v) {
$platformMock->method('quoteIdentifier')->willReturnCallback(function ($v) { return '`' . $v . '`'; });
$platformMock->method('quoteValue')->willReturnCallback(function ($v) {
if (is_int($v)) {
return $v;
} elseif ($v instanceof \DateTime) {

View file

@ -1,20 +0,0 @@
<?php
namespace TorrentPier\Db;
class EntityTest extends \PHPUnit_Framework_TestCase
{
/**
* @covers TorrentPier\Db\Entity::table
*/
public function testGetTableName()
{
$model = new Model();
static::assertEquals('table name', $model->table());
}
}
class Model extends Entity
{
protected $table = 'table name';
}