/** * Tests the guessFormat method with various types * * @param string $magicMethod The name of the magic method (__call or __get). * @param string $method The name of the method (e.g. randomNumber). * @param array $column The column schema with type etc. * @return void * @covers ::guessFormat * @dataProvider formatProvider */ public function testGuessFormats($magicMethod, $method, $column) { $this->_faker->expects($this->at(0))->method($magicMethod)->with($this->equalTo($method)); $result = $this->_guesser->guessFormat($column); $result(); }