def test_deep_compose(self): php = PHP() php.echo(php.strlen(php.strrev(self.TEST_STRING))) output = str(php) self.assertEquals(output, str(len(self.TEST_STRING)))