public function testCyrillic() { $variable = new PhpVariable('КонтактнаяИнформация', 0.4); $this->assertSame('$КонтактнаяИнформация = 0.4;', $variable->toString()); }
/** * @expectedException InvalidArgumentException */ public function testAddChild() { $constant = new PhpVariable('Foo', 'bar'); $constant->addChild(new PhpVariable('Bar', 'foo')); }