Lines Matching refs:node
10 $node = new Param(new Variable('foo'));
12 $this->assertFalse($node->isPromoted());
13 $this->assertFalse($node->isPrivate());
14 $this->assertFalse($node->isProtected());
15 $this->assertFalse($node->isPrivate());
16 $this->assertFalse($node->isReadonly());
17 $this->assertFalse($node->isPublicSet());
18 $this->assertFalse($node->isProtectedSet());
19 $this->assertFalse($node->isPrivateSet());
26 $node = new Param(new Variable('foo'));
27 $node->flags = constant(Modifiers::class . '::' . strtoupper($modifier));
28 $this->assertTrue($node->isPromoted());
29 $this->assertTrue($node->{'is' . $modifier}());
42 $node = new Param(new Variable('foo'));
43 $node->flags = Modifiers::PRIVATE_SET;
44 $this->assertTrue($node->isPrivateSet());
45 $node->flags = Modifiers::PROTECTED_SET;
46 $this->assertTrue($node->isProtectedSet());
47 $node->flags = Modifiers::PUBLIC_SET;
48 $this->assertTrue($node->isPublicSet());