function testConditionCountable() { $event = new Event(); $event->setArtists(new CountableImpl(0)); $tal = $this->newPHPTAL(); $tal->setSource('<div tal:condition="event/getArtists"> ${event/getArtists/0/makeDescription | \'fail\'} </div>'); $tal->set('event', $event); $this->assertEquals("", $tal->execute(), $tal->getCodePath()); }