ParaTest\Runners\PHPUnit\ResultPrinterTest::testGetErrorsMultipleErrors PHP Method

testGetErrorsMultipleErrors() public method

    public function testGetErrorsMultipleErrors()
    {
        $this->printer->addTest($this->errorSuite)->addTest($this->otherErrorSuite);
        $this->prepareReaders();
        $errors = $this->printer->getErrors();
        $eq = "There were 2 errors:\n\n";
        $eq .= "1) UnitTestWithErrorTest::testTruth\n";
        $eq .= "Exception: Error!!!\n\n";
        $eq .= "/home/brian/Projects/parallel-phpunit/test/fixtures/tests/UnitTestWithErrorTest.php:12\n";
        $eq .= "\n2) UnitTestWithOtherErrorTest::testSomeCase\n";
        $eq .= "Exception: Another Error!!!\n\n";
        $eq .= "/home/brian/Projects/parallel-phpunit/test/fixtures/tests/UnitTestWithOtherErrorTest.php:12\n";
        $this->assertEquals($eq, $errors);
    }