|
|
|
|
@ -127,7 +127,7 @@ class QBMapperTest extends \Test\TestCase {
|
|
|
|
|
];
|
|
|
|
|
$this->qb->expects($this->exactly(6))
|
|
|
|
|
->method('createNamedParameter')
|
|
|
|
|
->willReturnCallback(function() use (&$createNamedParameterCalls) {
|
|
|
|
|
->willReturnCallback(function () use (&$createNamedParameterCalls) {
|
|
|
|
|
$expected = array_shift($createNamedParameterCalls);
|
|
|
|
|
$this->assertEquals($expected, func_get_args());
|
|
|
|
|
});
|
|
|
|
|
@ -142,7 +142,7 @@ class QBMapperTest extends \Test\TestCase {
|
|
|
|
|
];
|
|
|
|
|
$this->qb->expects($this->exactly(6))
|
|
|
|
|
->method('setValue')
|
|
|
|
|
->willReturnCallback(function() use (&$setValueCalls) {
|
|
|
|
|
->willReturnCallback(function () use (&$setValueCalls) {
|
|
|
|
|
$expected = array_shift($setValueCalls);
|
|
|
|
|
$this->assertEquals($expected, func_get_args());
|
|
|
|
|
});
|
|
|
|
|
@ -184,7 +184,7 @@ class QBMapperTest extends \Test\TestCase {
|
|
|
|
|
];
|
|
|
|
|
$this->qb->expects($this->exactly(8))
|
|
|
|
|
->method('createNamedParameter')
|
|
|
|
|
->willReturnCallback(function() use (&$createNamedParameterCalls) {
|
|
|
|
|
->willReturnCallback(function () use (&$createNamedParameterCalls) {
|
|
|
|
|
$expected = array_shift($createNamedParameterCalls);
|
|
|
|
|
$this->assertEquals($expected, func_get_args());
|
|
|
|
|
});
|
|
|
|
|
@ -200,7 +200,7 @@ class QBMapperTest extends \Test\TestCase {
|
|
|
|
|
];
|
|
|
|
|
$this->qb->expects($this->exactly(7))
|
|
|
|
|
->method('set')
|
|
|
|
|
->willReturnCallback(function() use (&$setCalls) {
|
|
|
|
|
->willReturnCallback(function () use (&$setCalls) {
|
|
|
|
|
$expected = array_shift($setCalls);
|
|
|
|
|
$this->assertEquals($expected, func_get_args());
|
|
|
|
|
});
|
|
|
|
|
|