From 4afcbc081599f56d1a6f71304c5724ad1e8060e4 Mon Sep 17 00:00:00 2001 From: belliash Date: Sat, 29 Jun 2019 16:04:15 +0200 Subject: [PATCH] Extend singleton test. --- tests/singleton_test.aer | 5 +++++ tests/singleton_test.exp | 2 ++ 2 files changed, 7 insertions(+) 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