/** * @covers Phossa\Db\Types::guessType() */ public function testGuessType() { // null $this->assertEquals(Types::PARAM_NULL, Types::guessType(null)); // int $this->assertEquals(Types::PARAM_INT, Types::guessType(12)); // bool $this->assertEquals(Types::PARAM_BOOL, Types::guessType(false)); // string $this->assertEquals(Types::PARAM_STR, Types::guessType('test')); }