PhpStorm에서 PHPUnit(단위테스트) 설정하기 2
PhpStorm에서 PHPUnit 단위테스트 하기 1. Create New Project > PHPUnit 프로젝트 생성하기 2. 프로젝트 패널에서 단위테스트할 php파일(PHPUnit.php)을 만듭니다. 3. PHPUnit 단위테스트를 위한 코드를 작성해봅니다. http://www.phpunit.de/manual/current/en/writing-tests-for-phpunit.html Example 4.3: Exploiting the dependencies between tests <code>class DependencyFailureTest extends PHPUnit_Framework_TestCase { public function testOne() { $this-&gt;assertTrue(FALSE); } /** * @depends testOne */ public function testTwo() { } }</code> 1… 더 보기 »PhpStorm에서 PHPUnit(단위테스트) 설정하기 2