Esempio n. 1
0
 function incompleteTest(Assert $assert)
 {
     $this->suite->test('one', function (Assert $assert) {
         $assert->incomplete('Not done');
     });
     $this->runAndAssertOutput($assert, ['Foo', 'Foo::one -> Incomplete', '', '---- Incomplete ----', 'Foo::one [FILE:-11]', '    Not done', '', '=| 1 Incomplete']);
 }
Esempio n. 2
0
 function mixedResults(Assert $assert)
 {
     $this->suite->test('one', function (Assert $assert) {
         $assert->pass();
     });
     $this->suite->test('two', function (Assert $assert) {
         $assert->fail();
     });
     $this->suite->test('three', function (Assert $assert) {
         $assert->incomplete();
     });
     $this->runTestSuite();
     $assert(end($this->outputLines), '3 ran, 1 FAILED =(');
 }