function test_cp_with_exclude() { $this->_create_file_system(); $res = fs :: cp(TEST_DIR_ABSOLUTE_PATH . '/tmp/wow', TEST_DIR_ABSOLUTE_PATH . '/tmp/cp', false, '/hey/'); sort($res); $this->assertEqual( $res, array('test2_1', 'test2_2', 'test2_3') ); $this->assertEqual( $res, fs :: ls(TEST_DIR_ABSOLUTE_PATH . '/tmp/cp/') ); $this->assertFalse(is_dir(TEST_DIR_ABSOLUTE_PATH . '/tmp/cp/hey')); $this->_remove_file_system(); }