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