public function testNoException()
 {
     $test = new ThrowNoExceptionTestCase('test');
     $test->setExpectedException('Exception');
     $result = $test->run();
     $this->assertEquals(1, $result->failureCount());
     $this->assertEquals(1, count($result));
 }
Esempio n. 2
0
 public function testNoException()
 {
     $test = new ThrowNoExceptionTestCase('test');
     $test->expectException(RuntimeException::class);
     $result = $test->run();
     $this->assertEquals(1, $result->failureCount());
     $this->assertEquals(1, count($result));
 }