public function __construct($message, $path) { parent::__construct(sprintf($message, $path), 0, null, $path); }
public function testCustomMessage() { $e = new FileNotFoundException('bar', 0, null, '/foo'); $this->assertEquals('bar', $e->getMessage(), 'A custom message should be possible still.'); }