VersionControl_Git
[ class tree: VersionControl_Git ] [ index: VersionControl_Git ] [ all elements ]

Source for file VersionControl_Git_ComponentTest.php

Documentation is available at VersionControl_Git_ComponentTest.php

  1. <?php
  2.  
  3. chdir(dirname(__FILE__));
  4. set_include_path(get_include_path().PATH_SEPARATOR.realpath('../'));
  5.  
  6. require_once 'PHPUnit/Autoload.php';
  7. require_once 'VersionControl/Git.php';
  8.  
  9. require_once './checkFixtures.php';
  10.  
  11. {
  12. }
  13.  
  14. class VersionControl_Git_ComponentTest extends PHPUnit_Framework_TestCase
  15. {
  16.   public function testConstruct()
  17.   {
  18.     $git = new VersionControl_Git('./fixtures/001_VersionControl_Git');
  19.     $instance = new DummyGitComponent($git);
  20.  
  21.     $this->assertTrue($instance instanceof VersionControl_Git_Component);
  22.   }
  23.  
  24.   public function testConstructError()
  25.   {
  26.     $this->setExpectedException('PHPUnit_Framework_Error');
  27.  
  28.     $instance = new DummyGitComponent(new stdClass());
  29.   }
  30. }

Documentation generated on Mon, 11 Mar 2019 15:43:05 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.