コード例 #1
0
 public function testDataProviderWithSkippedInDefaultMode()
 {
     // amount of tests is known, but based on amount of methods,
     // but test has more actual tests from data provider so
     // we can't identify skipped tests
     $this->invoker = new ParaTestInvoker($this->fixture('skipped-tests/SkippedAndIncompleteDataProviderTest.php'), BOOTSTRAP);
     $proc = $this->invoker->execute();
     $expected = "OK (33 tests, 33 assertions)";
     $this->assertContains($expected, $proc->getOutput());
 }
コード例 #2
0
ファイル: GroupTest.php プロジェクト: luispabon/paratest
 public function testGroupsSwitchExecutesMultipleGroups()
 {
     $proc = $this->invoker->execute(array('functional', 'group' => 'group1,group3'));
     $this->assertRegExp('/OK \\(3 tests, 3 assertions\\)/', $proc->getOutput());
 }
コード例 #3
0
 public function testNumericDataSet1000InFunctionalModeWithFilterAndMaxBatchSize()
 {
     $proc = $this->invoker->execute(array("functional" => null, "max-batch-size" => 50, "filter" => "testNumericDataProvider1000"));
     $this->assertRegExp('/OK \\(1000 tests, 1000 assertions\\)/', $proc->getOutput());
 }