/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The extension must be a string. Got: array */ public function testChangeExtensionFailsIfInvalidExtension() { Path::changeExtension('/style.css', array()); }