PhlyTest\Mustache\MustacheTest::testConditionalIsSkippedIfValueIsFalse PHP Method

testConditionalIsSkippedIfValueIsFalse() public method

    public function testConditionalIsSkippedIfValueIsFalse()
    {
        $chris = new TestAsset\ViewWithMethod();
        $chris->in_ca = false;
        $test = $this->mustache->render('template-with-conditional', $chris);
        $expected = <<<EOT
Hello Chris
You have just won \$1000000!

EOT;
        $this->assertEquals($expected, $test);
    }
MustacheTest