Esempio n. 1
0
File: test.php Progetto: atoum/atoum
 public function testGetTaggedTestMethods()
 {
     $this->if($test = new emptyTest())->then->array($test->getTaggedTestMethods(array()))->isEmpty()->array($test->getTaggedTestMethods(array(uniqid())))->isEmpty()->array($test->getTaggedTestMethods(array(uniqid(), uniqid())))->isEmpty()->if($test = new notEmptyTest())->then->array($test->getTaggedTestMethods(array()))->isEmpty()->array($test->getTaggedTestMethods(array(uniqid())))->isEmpty()->array($test->getTaggedTestMethods(array(uniqid(), uniqid())))->isEmpty()->array($test->getTaggedTestMethods(array(uniqid(), 'testMethod1', uniqid())))->isEmpty()->array($test->getTaggedTestMethods(array(uniqid(), 'testMethod1', uniqid(), 'testMethod2')))->isEmpty()->array($test->getTaggedTestMethods(array(uniqid(), 'Testmethod1', uniqid(), 'Testmethod2')))->isEmpty()->if($test->ignore(false))->then->array($test->getTaggedTestMethods(array(uniqid(), 'testMethod1', uniqid())))->isEqualTo(array('testMethod1'))->array($test->getTaggedTestMethods(array(uniqid(), 'testMethod2', uniqid())))->isEqualTo(array('testMethod2'))->array($test->getTaggedTestMethods(array(uniqid(), 'Testmethod1', uniqid(), 'Testmethod2')))->isEqualTo(array('Testmethod1', 'Testmethod2'))->array($test->getTaggedTestMethods(array(uniqid(), 'Testmethod1', uniqid(), 'Testmethod2'), array('one')))->isEqualTo(array('Testmethod1'))->if($test->ignoreMethod('testMethod1', true))->then->array($test->getTaggedTestMethods(array(uniqid(), 'testMethod1', uniqid())))->isEmpty()->array($test->getTaggedTestMethods(array(uniqid(), 'testMethod2', uniqid())))->isEqualTo(array('testMethod2'))->array($test->getTaggedTestMethods(array(uniqid(), 'Testmethod1', uniqid(), 'Testmethod2')))->isEqualTo(array('Testmethod2'))->array($test->getTaggedTestMethods(array(uniqid(), 'Testmethod1', uniqid(), 'Testmethod2'), array('one')))->isEmpty();
 }