Browse Source

Extend singleton test.

tags/v0.1.0
Rafal Kupiec 1 year ago
parent
commit
4afcbc0815
Signed by: belliash <belliash@codingworkshop.eu.org> GPG Key ID: 4E829243E0CFE6B4
2 changed files with 7 additions and 0 deletions
  1. +5
    -0
      tests/singleton_test.aer
  2. +2
    -0
      tests/singleton_test.exp

+ 5
- 0
tests/singleton_test.aer View File

@@ -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 */


+ 2
- 0
tests/singleton_test.exp View File

@@ -1 +1,3 @@
Constructor called.
int(5)
Destructor called.

Loading…
Cancel
Save