public function testGetPhpDeclarationConstant() { $variable = new PhpVariable('foo', '::XML_ELEMENT_NODE'); $this->assertSame("\$foo = XML_ELEMENT_NODE;", $variable->getPhpDeclaration()); }