@@ -72,9 +72,6 @@ public function testResource()
7272 $ this ->assertCount (1 , $ object ->getAllResources ());
7373 $ this ->assertInternalType ('array ' , $ object ->getAllResources ());
7474 $ this ->assertInstanceOf ('PhpOffice \\PhpProject \\Resource ' , $ object ->getActiveResource ());
75- // Get Resource
76- $ this ->assertInstanceOf ('PhpOffice \\PhpProject \\Resource ' , $ object ->getResource ());
77- $ this ->assertInstanceOf ('PhpOffice \\PhpProject \\Resource ' , $ object ->getResource (0 ));
7875 }
7976
8077 public function testResourceFromIndex ()
@@ -89,16 +86,6 @@ public function testResourceFromIndex()
8986 $ this ->assertNull ($ object ->getResourceFromIndex (1 ));
9087 }
9188
92- /**
93- * @expectedException \Exception
94- * @expectedExceptionMessage Resource index is out of bounds.
95- */
96- public function testResourceException ()
97- {
98- $ object = new PhpProject ();
99- $ object ->getResource ();
100- }
101-
10289 public function testTask ()
10390 {
10491 $ object = new PhpProject ();
@@ -123,10 +110,6 @@ public function testTask()
123110 $ this ->assertEquals (1 , $ object ->getActiveTaskIndex ());
124111 $ this ->assertInternalType ('array ' , $ object ->getAllTasks ());
125112 $ this ->assertInstanceOf ('PhpOffice \\PhpProject \\Task ' , $ object ->getActiveTask ());
126- // Get Task
127- $ this ->assertInstanceOf ('PhpOffice \\PhpProject \\Task ' , $ object ->getTask ());
128- $ this ->assertInstanceOf ('PhpOffice \\PhpProject \\Task ' , $ object ->getTask (0 ));
129- $ this ->assertInstanceOf ('PhpOffice \\PhpProject \\Task ' , $ object ->getTask (1 ));
130113 // Active Task
131114 $ this ->assertInstanceOf ('PhpOffice \\PhpProject \\Task ' , $ object ->setActiveTaskIndex (0 ));
132115 $ this ->assertEquals (0 , $ object ->getActiveTaskIndex ());
@@ -155,16 +138,6 @@ public function testTaskFromIndex()
155138 $ this ->assertNull ($ object ->getTaskFromIndex (1 ));
156139 }
157140
158- /**
159- * @expectedException \Exception
160- * @expectedExceptionMessage Task index is out of bounds.
161- */
162- public function testTaskException ()
163- {
164- $ object = new PhpProject ();
165- $ object ->getTask ();
166- }
167-
168141 /**
169142 * @expectedException \Exception
170143 * @expectedExceptionMessage Task index is out of bounds.
0 commit comments