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

test__toString() public method

public test__toString ( )
    public function test__toString()
    {
        $this->if($test = new \mock\mageekguy\atoum\test())->and($this->calling($test)->getClass = $class = uniqid())->and($this->calling($test)->getCurrentMethod = $method = uniqid())->and($field = new testedClass())->then->castToString($field)->isEmpty()->if($field->handleEvent(atoum\test::success, $test))->then->castToString($field)->isEqualTo('ok 1' . PHP_EOL . '# ' . $class . '::' . $method . '()' . PHP_EOL)->if($this->calling($test)->getCurrentMethod = $otherMethod = uniqid())->and($field->handleEvent(atoum\test::success, $test))->then->castToString($field)->isEqualTo('ok 2' . PHP_EOL . '# ' . $class . '::' . $otherMethod . '()' . PHP_EOL)->if($this->calling($test)->getClass = $otherClass = uniqid())->and($this->calling($test)->getCurrentMethod = $thridMethod = uniqid())->and($field->handleEvent(atoum\test::success, $test))->then->castToString($field)->isEqualTo('ok 3' . PHP_EOL . '# ' . $otherClass . '::' . $thridMethod . '()' . PHP_EOL);
    }