ParaTest\Logging\JUnit\WriterTest::testThatEmptyLineAttributesConvertToZero PHP Method

testThatEmptyLineAttributesConvertToZero() public method

To repair, ensure that empty line attributes are actually written as 0 instead of empty string.
    public function testThatEmptyLineAttributesConvertToZero()
    {
        $mixed = FIXTURES . DS . 'results' . DS . 'junit-example-result.xml';
        $reader = new Reader($mixed);
        $this->interpreter->addReader($reader);
        $writer = new Writer($this->interpreter, "test/fixtures/tests/");
        $xml = $writer->getXml();
        $this->assertFalse(strpos($xml, 'line=""'), 'Expected no empty line attributes (line=""), but found one.');
    }