assertEquals($result, SchemaFormatter::format($format, $value)); } /** * @expectedException \Guzzle\Common\Exception\InvalidArgumentException */ public function testValidatesDateTimeInput() { SchemaFormatter::format('date-time', false); } public function testEnsuresTimestampsAreIntegers() { $t = time(); $result = SchemaFormatter::format('timestamp', $t); $this->assertSame($t, $result); $this->assertInternalType('int', $result); } }