コード例 #1
0
ファイル: ProjectTest.php プロジェクト: hpbuniat/testy
 /**
  * Test getting a config-hash
  *
  * @depends testRun
  */
 public function testIsEnabled()
 {
     $this->assertTrue($this->_object->isEnabled());
     $oConfig = new \stdClass();
     $oConfig->test = 'cd /tmp';
     $oConfig->path = '/tmp';
     $oConfig->find = '*';
     $oConfig->enabled = false;
     $oProject = new \Testy\Project('test');
     $oProject->config($oConfig);
     $this->assertFalse($oProject->isEnabled());
     unset($oProject);
 }