assertEquals($result, (new SchemaFormatter)->format($format, $value)); } public function testValidatesDateTimeInput() { $this->expectException(\InvalidArgumentException::class); (new SchemaFormatter)->format('date-time', false); } public function testEnsuresTimestampsAreIntegers() { $t = time(); $result = (new SchemaFormatter)->format('timestamp', $t); $this->assertSame($t, $result); $this->assertIsInt($result); } }