/** * Test that the file is overwritten if overwriting is on. * * @since 0.1.0 */ public function test_move_file_overwrite_on() { $this->assertTrue($this->mock_fs->add_file('/test.txt', array('contents' => 'test'))); $this->assertTrue($this->mock_fs->add_file('/a.txt', array('contents' => 'abc'))); $this->assertTrue($this->fs->move('/test.txt', '/a.txt', true)); $this->assertFalse($this->fs->exists('/test.txt')); $this->assertEquals('test', $this->fs->get_contents('/a.txt')); }