File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 24
24
- " 7.3"
25
25
- " 7.2"
26
26
- " 7.1"
27
- - " 7.0"
28
- - " 5.6"
27
+ # - "7.0"
28
+ # - "5.6"
29
29
30
30
steps :
31
31
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use ByJG \DesignPattern \SingletonException ;
4
+
3
5
require_once __DIR__ . "/../vendor/autoload.php " ;
4
6
require_once "Sample1.php " ;
5
7
require_once "Sample2.php " ;
@@ -36,20 +38,16 @@ public function testSingleton()
36
38
$ this ->assertEquals (40 , $ sample1 ->property );
37
39
}
38
40
39
- /**
40
- * @expectedException \ByJG\DesignPattern\SingletonException
41
- */
42
41
public function testClone ()
43
42
{
43
+ $ this ->expectException (SingletonException::class);
44
44
$ sample1 = Sample1::getInstance ();
45
45
$ sample2 = clone $ sample1 ;
46
46
}
47
47
48
- /**
49
- * @expectedException \ByJG\DesignPattern\SingletonException
50
- */
51
48
public function testSerialize ()
52
49
{
50
+ $ this ->expectException (SingletonException::class);
53
51
$ sample1 = Sample1::getInstance ();
54
52
$ serialize = serialize ($ sample1 );
55
53
}
You can’t perform that action at this time.
0 commit comments