PHPUnit_Framework_TestResult::wasSuccessful PHP Méthode

wasSuccessful() public méthode

Returns whether the entire test was successful or not.
public wasSuccessful ( ) : boolean
Résultat boolean
    public function wasSuccessful()
    {
        return empty($this->errors) && empty($this->failures) && empty($this->warnings);
    }

Usage Example

 public function testNavigationAccessTest()
 {
     $suite = new PHPUnit_Framework_TestSuite();
     $suite->addTestSuite('AccessNavigationTest');
     $suite->run($result = new PHPUnit_Framework_TestResult());
     $this->assertEquals(5, $result->count());
     $this->assertTrue($result->wasSuccessful());
 }
All Usage Examples Of PHPUnit_Framework_TestResult::wasSuccessful