tikiwiki/packages/tiki-pkg-expose/enygma/expose/tests/MockMongoCollection.php

23 lines
359 B
PHP
Raw Normal View History

2023-11-20 21:52:04 +01:00
<?php
namespace Expose;
include_once 'MockMongoCursor.php';
/**
* Mock MongoCollection used for testing
*/
class MockMongoCollection
{
private $data = null;
public function __construct($data)
{
$this->data = new \Expose\MockMongoCursor($data);
}
public function __call($name, $args)
{
return $this->data;
}
}