Exemplo n.º 1
0
 /**
  * @test
  * @dataProvider updateQueriesDataProvider
  * @param array $args
  * @param string $expectedQuery
  * @param array $expectedValues
  * @param array $expectedTypes
  */
 public function updateQueries(array $args, string $expectedQuery, array $expectedValues, array $expectedTypes)
 {
     $this->connection->expects($this->once())->method('executeUpdate')->with($expectedQuery, $expectedValues, $expectedTypes)->will($this->returnValue(1));
     $this->connection->update(...$args);
 }