PHPUnitを使用してテストを無視するために、PHPテストメソッドの隣に配置する属性は何ですか?phpunitの内容を変更せずにテストメソッドを無視するにはどうしたらいいですか?
私はNUnitのために属性があることを知っている:
<?php
require_once 'PHPUnit/Framework.php';
class SampleTest extends PHPUnit_Framework_TestCase
{
public function testSomething()
{
// Optional: Test anything here, if you want.
$this->assertTrue(TRUE, 'This should already work.');
// Stop here and mark this test as incomplete.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
}
?>
は答えてくれてありがとう、私はテストの内容を変更する必要はありません。時々私はいくつかのテストを無視し、テストフローでそれらを再追加したいことがあります。 –