def test_add(self): php = PHP() array = php.range(1, self.TEST_RANGE) php.echo(php.count(array) + self.TEST_VALUE) self.assertEquals(str(php), str(self.TEST_VALUE + self.TEST_RANGE))
def test_list(self): php = PHP() php.echo(php.count(range(self.TEST_RANGE))) output = str(php) self.assertEquals(output, str(self.TEST_RANGE))