mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	Update test-unit.md
This commit is contained in:
		@ -8,7 +8,7 @@
 | 
				
			|||||||
正确性。也就是说,单元测试验证了方法在给定不同的输入参数的情况下,该方法
 | 
					正确性。也就是说,单元测试验证了方法在给定不同的输入参数的情况下,该方法
 | 
				
			||||||
是否能够返回预期的结果。单元测试通常由编写待测试类的人开发。
 | 
					是否能够返回预期的结果。单元测试通常由编写待测试类的人开发。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Yii的单元测试框架 Codeception 基于 PHPUnit, Codeception 建议遵从PHPUnit的文档的进行开发:
 | 
					Yii的单元测试框架 Codeception 基于 PHPUnit,Codeception 建议遵从PHPUnit的文档的进行开发:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- [PHPUnit docs starting from chapter 2](http://phpunit.de/manual/current/en/writing-tests-for-phpunit.html)。
 | 
					- [PHPUnit docs starting from chapter 2](http://phpunit.de/manual/current/en/writing-tests-for-phpunit.html)。
 | 
				
			||||||
- [Codeception Unit Tests](http://codeception.com/docs/05-UnitTests)。
 | 
					- [Codeception Unit Tests](http://codeception.com/docs/05-UnitTests)。
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user