Пример #1
0
  function testCpWithExclude()
  {
    $this->_createFileSystem();

    $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->_removeFileSystem();
  }