diff --git a/tests/singleton_test.aer b/tests/singleton_test.aer index edad82a..ec7fc02 100644 --- a/tests/singleton_test.aer +++ b/tests/singleton_test.aer @@ -2,6 +2,11 @@ final class Test { private int $value; private void __construct() { + print('Constructor called.' + "\n"); + } + + private void __destruct() { + print('Destructor called.' + "\n"); } /* This is singleton */ diff --git a/tests/singleton_test.exp b/tests/singleton_test.exp index a3b0315..010362b 100644 --- a/tests/singleton_test.exp +++ b/tests/singleton_test.exp @@ -1 +1,3 @@ +Constructor called. int(5) +Destructor called. \ No newline at end of file