mageekguy\atoum\tests\units\test::testSetMethodTags PHP Method

testSetMethodTags() public method

public testSetMethodTags ( )
    public function testSetMethodTags()
    {
        $this->if($test = new notEmptyTest())->then->object($test->setMethodTags('testMethod1', $tags = array(uniqid(), uniqid())))->isIdenticalTo($test)->array($test->getMethodTags('testMethod1'))->isEqualTo($tags)->exception(function () use($test, &$method) {
            $test->setMethodTags($method = uniqid(), array());
        })->isInstanceOf('mageekguy\\atoum\\exceptions\\logic\\invalidArgument')->hasMessage('Test method ' . get_class($test) . '::' . $method . '() does not exist');
    }