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

test__toStringWithSkip() public method

    public function test__toStringWithSkip()
    {
        $this->mockGenerator->shunt('__construct')->if($score = new \mock\atoum\test\score())->and($this->calling($score)->getLastSkippedMethod[1] = array('file' => $file1 = uniqid(), 'class' => $class1 = uniqid(), 'method' => $method1 = uniqid(), 'line' => $line1 = rand(1, PHP_INT_MAX), 'message' => $message1 = uniqid()))->and($this->calling($score)->getLastSkippedMethod[2] = array('file' => $file2 = uniqid(), 'class' => $class2 = uniqid(), 'method' => $method2 = uniqid(), 'line' => $line2 = rand(1, PHP_INT_MAX), 'message' => ($message2 = uniqid()) . PHP_EOL . ($otherMessage2 = uniqid()) . PHP_EOL . ($anotherMessage2 = 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::skipped, $test))->then->castToString($field)->isEqualTo('ok 1 # SKIP ' . $class1 . '::' . $method1 . '()' . PHP_EOL . '# ' . $message1 . PHP_EOL . '# ' . $file1 . ':' . $line1 . PHP_EOL)->if($field->handleEvent(atoum\test::skipped, $test))->then->castToString($field)->isEqualTo('ok 2 # SKIP ' . $class2 . '::' . $method2 . '()' . PHP_EOL . '# ' . $message2 . PHP_EOL . '# ' . $otherMessage2 . PHP_EOL . '# ' . $anotherMessage2 . PHP_EOL . '# ' . $file2 . ':' . $line2 . PHP_EOL)->if($score->getMockController()->resetCalls())->and($field->handleEvent(atoum\runner::runStart, $test))->then->castToString($field)->isEmpty()->if($field->handleEvent(atoum\test::skipped, $test))->then->castToString($field)->isEqualTo('ok 1 # SKIP ' . $class1 . '::' . $method1 . '()' . PHP_EOL . '# ' . $message1 . PHP_EOL . '# ' . $file1 . ':' . $line1 . PHP_EOL)->if($field->handleEvent(atoum\test::skipped, $test))->then->castToString($field)->isEqualTo('ok 2 # SKIP ' . $class2 . '::' . $method2 . '()' . PHP_EOL . '# ' . $message2 . PHP_EOL . '# ' . $otherMessage2 . PHP_EOL . '# ' . $anotherMessage2 . PHP_EOL . '# ' . $file2 . ':' . $line2 . PHP_EOL);
    }