Advertisement
Guest User

Untitled

a guest
Oct 24th, 2013
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?php
  2. /**
  3. * Created by JetBrains PhpStorm.
  4. * User: vishal
  5. * Date: 24/10/13
  6. * Time: 1:00 AM
  7. * To change this template use File | Settings | File Templates.
  8. */
  9.  
  10.  
  11. $directory = getcwd();
  12.  
  13. echo "..........................dir.first...............................";
  14. echo $directory;
  15. echo "...........................................................";
  16.  
  17.  
  18. $result=chdir ('drupal_check');
  19. $directory = getcwd();
  20. echo "..........................dir.second...............................";
  21. echo $directory;
  22. echo "...........................................................";
  23.  
  24.  
  25.  
  26. require_once 'index.php';
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. class index_Test extends PHPUnit_Framework_TestCase
  34. {
  35. public function test_content_try()
  36. {
  37.  
  38.  
  39. $directory = getcwd();
  40. echo ".........................Second............................";
  41. echo $directory;
  42. echo "...........................................................";
  43.  
  44.  
  45. $value=content_try();
  46. $this->assertEquals('10', $value,'Value should be one');
  47.  
  48. }
  49. }
  50.  
  51.  
  52.  
  53.  
  54.  
  55. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement