Example #1
0
File: test.php Project: atoum/atoum
 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');
 }