mageekguy\atoum\tests\units\report\fields\test\event\tap::test__toStringWithVoid PHP Method

test__toStringWithVoid() public method

    public function test__toStringWithVoid()
    {
        $this->mockGenerator->shunt('__construct')->if($score = new \mock\atoum\test\score())->and($this->calling($score)->getLastVoidMethod[1] = array('class' => $class1 = uniqid(), 'method' => $method1 = uniqid(), 'file' => $file1 = uniqid()))->and($this->calling($score)->getLastVoidMethod[2] = array('class' => $class2 = uniqid(), 'method' => $method2 = uniqid(), 'file' => $file2 = uniqid()))->and($test = new \mock\mageekguy\atoum\test())->and($this->calling($test)->getScore = $score)->and($field = new testedClass())->then->castToString($field)->isEmpty()->if($field->handleEvent(atoum\runner::runStart, $test))->then->castToString($field)->isEmpty()->if($field->handleEvent(atoum\test::void, $test))->then->castToString($field)->isEqualTo('not ok 1 # TODO ' . $class1 . '::' . $method1 . '()' . PHP_EOL . '# ' . $file1 . PHP_EOL)->if($field->handleEvent(atoum\test::void, $test))->then->castToString($field)->isEqualTo('not ok 2 # TODO ' . $class2 . '::' . $method2 . '()' . PHP_EOL . '# ' . $file2 . PHP_EOL)->if($score->getMockController()->resetCalls())->and($field->handleEvent(atoum\runner::runStart, $test))->then->castToString($field)->isEmpty()->if($field->handleEvent(atoum\test::void, $test))->then->castToString($field)->isEqualTo('not ok 1 # TODO ' . $class1 . '::' . $method1 . '()' . PHP_EOL . '# ' . $file1 . PHP_EOL)->if($field->handleEvent(atoum\test::void, $test))->then->castToString($field)->isEqualTo('not ok 2 # TODO ' . $class2 . '::' . $method2 . '()' . PHP_EOL . '# ' . $file2 . PHP_EOL);
    }