<?php namespace MongoDB\Tests\Operation; use MongoDB\Operation\ListIndexes; class ListIndexesTest extends TestCase { /** * @expectedException MongoDB\Exception\InvalidArgumentException * @dataProvider provideInvalidConstructorOptions */ public function testConstructorOptionTypeChecks(array $options) { new ListIndexes($this->getDatabaseName(), $this->getCollectionName(), $options); } public function provideInvalidConstructorOptions() { $options = []; foreach ($this->getInvalidIntegerValues() as $value) { $options[][] = ['maxTimeMS' => $value]; } return $options; } }