Beispiel #1
0
 /**
  * Test multiple files
  */
 public function testMultiple()
 {
     $aFiles = array(__FILE__, __DIR__ . DIRECTORY_SEPARATOR . 'ExceptionTest.php');
     $oRunner = new \Testy\Project\Test\Runner($this->_oProject, $aFiles, $this->_oConfig);
     $oRunner->run(\Testy\Test\Helper\Command::getSuccess());
     $this->assertEquals(count($aFiles), $oRunner->getCommands());
 }
Beispiel #2
0
 /**
  * Test the check command
  *
  * @depends testAddNotifier
  */
 public function testCheck()
 {
     $this->assertInstanceOf('\\Testy\\Project', $this->_object->setCommand(\Testy\Test\Helper\Command::getSuccess('1' . PHP_EOL . '2' . PHP_EOL . '3')));
     $this->assertInstanceOf('\\Testy\\Project', $this->_object->config($this->_oConfig));
     $this->assertInstanceOf('\\Testy\\Project', $this->_object->check(0));
     $this->assertNotEmpty($this->_object->getFiles());
 }