PHPUnitã®è¨å® ç¶ãã¦ãPHPUnitããAspectMockã使ãããã®è¨å®ããã¾ããã¾ããbackupGlobalsãå¿ ãfalseã«ãã¾ãã phpunit.xml <phpunit bootstrap="bootstrap.php" backupGlobals="false"> ããã¦ãtearDown()ã¡ã½ããã§ç»é²ãããã¹ãããã«ãåé¤ããããã«ãã¾ãã TestCase <?php use AspectMock\Test as test; abstract class TestCase extends \PHPUnit_Framework_TestCase { protected function tearDown() { test::clean(); // ç»é²ãããã¹ãããã«ãåé¤ } } AspectMockã®ä½¿ãæ¹ ããã§ã¯ãAspectMockã®ä½¿ãæ¹ãè¦ã¦
{{#tags}}- {{label}}
{{/tags}}