assertInstanceOf( File::class, $instance ); } public function testWrite_ThrowsException() { $instance = new File(); $this->expectException( '\SMW\Exception\FileNotWritableException' ); $instance->write( 'abc/Foo', '' ); } public function testDir() { $this->assertIsString( File::dir( 'foo' ) ); } }