@@ -11,7 +11,9 @@ public function testGraphEmpty()
11
11
12
12
$ alg = new AlgorithmDirected ($ graph );
13
13
14
- $ this ->assertFalse ($ alg ->isDirected ());
14
+ $ this ->assertFalse ($ alg ->hasDirected ());
15
+ $ this ->assertFalse ($ alg ->hasUndirected ());
16
+ $ this ->assertFalse ($ alg ->isMixed ());
15
17
}
16
18
17
19
public function testGraphUndirected ()
@@ -22,7 +24,9 @@ public function testGraphUndirected()
22
24
23
25
$ alg = new AlgorithmDirected ($ graph );
24
26
25
- $ this ->assertFalse ($ alg ->isDirected ());
27
+ $ this ->assertFalse ($ alg ->hasDirected ());
28
+ $ this ->assertTrue ($ alg ->hasUndirected ());
29
+ $ this ->assertFalse ($ alg ->isMixed ());
26
30
}
27
31
28
32
public function testGraphDirected ()
@@ -33,7 +37,9 @@ public function testGraphDirected()
33
37
34
38
$ alg = new AlgorithmDirected ($ graph );
35
39
36
- $ this ->assertTrue ($ alg ->isDirected ());
40
+ $ this ->assertTrue ($ alg ->hasDirected ());
41
+ $ this ->assertFalse ($ alg ->hasUndirected ());
42
+ $ this ->assertFalse ($ alg ->isMixed ());
37
43
}
38
44
39
45
public function testGraphMixed ()
@@ -45,6 +51,8 @@ public function testGraphMixed()
45
51
46
52
$ alg = new AlgorithmDirected ($ graph );
47
53
48
- $ this ->assertTrue ($ alg ->isDirected ());
54
+ $ this ->assertTrue ($ alg ->hasDirected ());
55
+ $ this ->assertTrue ($ alg ->hasUndirected ());
56
+ $ this ->assertTrue ($ alg ->isMixed ());
49
57
}
50
58
}
0 commit comments