assertTrue($node->{'is' . $modifier}()); } /** * @dataProvider provideModifiers */ public function testNoModifiers($modifier) { $node = new Property(0, array()); $this->assertFalse($node->{'is' . $modifier}()); } public function provideModifiers() { return array( array('public'), array('protected'), array('private'), array('static'), ); } }