コード例 #1
0
ファイル: test.php プロジェクト: atoum/atoum
 public function testIsIgnored()
 {
     $this->if($test = new emptyTest())->then->boolean($test->isIgnored())->isTrue()->object($test->ignore(false))->isIdenticalTo($test)->boolean($test->isIgnored())->isTrue()->object($test->ignore(true))->isIdenticalTo($test)->boolean($test->isIgnored())->isTrue()->if($test = new notEmptyTest())->then->boolean($test->isIgnored())->isTrue()->boolean($test->methodIsIgnored('testMethod1'))->isTrue()->boolean($test->methodIsIgnored('testMethod2'))->isTrue()->object($test->ignore(false))->isIdenticalTo($test)->boolean($test->isIgnored())->isFalse()->boolean($test->methodIsIgnored('testMethod1'))->isFalse()->boolean($test->methodIsIgnored('testMethod2'))->isFalse()->object($test->ignore(true))->isIdenticalTo($test)->boolean($test->isIgnored())->isTrue()->boolean($test->methodIsIgnored('testMethod1'))->istrue()->boolean($test->methodIsIgnored('testMethod2'))->isTrue();
 }