comments
This commit is contained in:
		
							parent
							
								
									38e61412cd
								
							
						
					
					
						commit
						718be2d381
					
				@ -1,13 +1,67 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Interfaces for tests
 | 
			
		||||
	 *
 | 
			
		||||
	 * @package TUnit
 | 
			
		||||
	 * @author  Tommy Montgomery
 | 
			
		||||
	 * @version 1.0
 | 
			
		||||
	 * @since   1.0
 | 
			
		||||
	 */
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Interface for recursively counting tests
 | 
			
		||||
	 *
 | 
			
		||||
	 * @package TUnit
 | 
			
		||||
	 * @author  Tommy Montgomery
 | 
			
		||||
	 * @version 1.0
 | 
			
		||||
	 * @since   1.0
 | 
			
		||||
	 */
 | 
			
		||||
	interface RecursivelyCountable extends Countable {
 | 
			
		||||
		
 | 
			
		||||
		/**
 | 
			
		||||
		 * Describe this function
 | 
			
		||||
		 *
 | 
			
		||||
		 * @author  Tommy Montgomery
 | 
			
		||||
		 * @version 1.0
 | 
			
		||||
		 * @since   1.0
 | 
			
		||||
		 *
 | 
			
		||||
		 * @return array
 | 
			
		||||
		 */
 | 
			
		||||
		public function getTestCount();
 | 
			
		||||
		
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * This interface makes a class testable by the TUnit framework
 | 
			
		||||
	 *
 | 
			
		||||
	 * @package TUnit
 | 
			
		||||
	 * @author  Tommy Montgomery
 | 
			
		||||
	 * @version 1.0
 | 
			
		||||
	 * @since   1.0
 | 
			
		||||
	 */
 | 
			
		||||
	interface Testable extends RecursivelyCountable {
 | 
			
		||||
		
 | 
			
		||||
		/**
 | 
			
		||||
		 * Runs the test
 | 
			
		||||
		 *
 | 
			
		||||
		 * @author  Tommy Montgomery
 | 
			
		||||
		 * @version 1.0
 | 
			
		||||
		 * @since   1.0
 | 
			
		||||
		 * 
 | 
			
		||||
		 * @param  array $listeners Array of {@link TestListener}s
 | 
			
		||||
		 */
 | 
			
		||||
		public function run(array $listeners);
 | 
			
		||||
		
 | 
			
		||||
		/**
 | 
			
		||||
		 * Gets the name of the test
 | 
			
		||||
		 *
 | 
			
		||||
		 * @author  Tommy Montgomery
 | 
			
		||||
		 * @version 1.0
 | 
			
		||||
		 * @since   1.0
 | 
			
		||||
		 *
 | 
			
		||||
		 * @return string
 | 
			
		||||
		 */
 | 
			
		||||
		public function getName();
 | 
			
		||||
		
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user