コード例 #1
0
ファイル: ProjectTest.php プロジェクト: hpbuniat/testy
 /**
  * The the creation of the find-command
  *
  * @param  \stdClass $oFixture
  * @param  string $sExpected
  *
  * @dataProvider getFindCommandProvider
  */
 public function testGetFindCommand(\stdClass $oFixture, $sExpected)
 {
     $oProject = new \Testy\Project('test');
     $oProject->config($oFixture);
     $iTime = time();
     $sReturn = $oProject->getFindCommand($oFixture->path, $iTime);
     $this->assertEquals(sprintf($sExpected, date($oProject::FIND_DATE_FORMAT, $iTime)), $sReturn);
     unset($oProject);
 }