diff -U 3 -H -d -r -N -- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Equation_Test.php /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Equation_Test.php
--- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Equation_Test.php	2015-11-13 07:41:37.000000000 +0100
+++ /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Equation_Test.php	2018-05-02 14:43:40.781671963 +0200
@@ -20,7 +20,7 @@
  * @license  BSD License
  * @link     http://pear.php.net/package/Text_CAPTCHA
  */
-class Text_CAPTCHA_Driver_Equation_Test extends PHPUnit_Framework_TestCase
+class Text_CAPTCHA_Driver_Equation_Test extends PHPUnit\Framework\TestCase
 {
     /**
      * Test instance
@@ -74,7 +74,7 @@
      */
     public function testInvalidComplexity()
     {
-        $this->setExpectedException("Text_CAPTCHA_Exception");
+        $this->expectException("Text_CAPTCHA_Exception");
         $this->_captcha->init(
             array(
                 'severity' => 99
diff -U 3 -H -d -r -N -- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Figlet_Test.php /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Figlet_Test.php
--- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Figlet_Test.php	2015-11-13 07:41:37.000000000 +0100
+++ /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Figlet_Test.php	2018-05-02 14:43:40.797679963 +0200
@@ -20,7 +20,7 @@
  * @license  BSD License
  * @link     http://pear.php.net/package/Text_CAPTCHA
  */
-class Text_CAPTCHA_Driver_Figlet_Test extends PHPUnit_Framework_TestCase
+class Text_CAPTCHA_Driver_Figlet_Test extends PHPUnit\Framework\TestCase
 {
     /**
      * Test instance
@@ -157,7 +157,7 @@
      */
     public function testInvalidOutputType()
     {
-        $this->setExpectedException('Text_CAPTCHA_Exception');
+        $this->expectException('Text_CAPTCHA_Exception');
         $options = array(
             'font_file' => glob(dirname(__FILE__) . '/data/*.flf'),
             'output' => 'image'
diff -U 3 -H -d -r -N -- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Image_Test.php /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Image_Test.php
--- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Image_Test.php	2015-11-13 07:41:37.000000000 +0100
+++ /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Image_Test.php	2018-05-02 14:44:32.147341963 +0200
@@ -20,7 +20,7 @@
  * @license  BSD License
  * @link     http://pear.php.net/package/Text_CAPTCHA
  */
-class Text_CAPTCHA_Driver_Image_Test extends PHPUnit_Framework_TestCase
+class Text_CAPTCHA_Driver_Image_Test extends PHPUnit\Framework\TestCase
 {
     /**
      * Test instance
@@ -89,7 +89,7 @@
      */
     public function testTooLong2()
     {
-        $this->setExpectedException("Image_Text_Exception");
+        $this->expectException("Image_Text_Exception");
         $imageOptions = array(
             'font_path' => dirname(__FILE__) . '/data/',
             'font_file' => 'cour.ttf',
@@ -112,7 +112,7 @@
      */
     public function testTooHeight()
     {
-        $this->setExpectedException("Text_CAPTCHA_Exception");
+        $this->expectException("Text_CAPTCHA_Exception");
         $imageOptions = array(
             'font_path' => dirname(__FILE__) . '/data/',
             'font_file' => 'cour.ttf',
@@ -168,7 +168,7 @@
      */
     public function testInvalidOutput()
     {
-        $this->setExpectedException("Text_CAPTCHA_Exception");
+        $this->expectException("Text_CAPTCHA_Exception");
         $imageOptions = array(
             'font_path' => dirname(__FILE__) . '/data/',
             'font_file' => 'cour.ttf',
diff -U 3 -H -d -r -N -- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Numeral_Test.php /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Numeral_Test.php
--- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Numeral_Test.php	2015-11-13 07:41:37.000000000 +0100
+++ /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Numeral_Test.php	2018-05-02 14:36:05.862325963 +0200
@@ -20,7 +20,7 @@
  * @license  BSD License
  * @link     http://pear.php.net/package/Text_CAPTCHA
  */
-class Text_CAPTCHA_Driver_Numeral_Test extends PHPUnit_Framework_TestCase
+class Text_CAPTCHA_Driver_Numeral_Test extends PHPUnit\Framework\TestCase
 {
     /**
      * Test instance
diff -U 3 -H -d -r -N -- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Word_Test.php /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Word_Test.php
--- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Word_Test.php	2015-11-13 07:41:37.000000000 +0100
+++ /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Word_Test.php	2018-05-02 14:36:05.870329963 +0200
@@ -20,7 +20,7 @@
  * @license  BSD License
  * @link     http://pear.php.net/package/Text_CAPTCHA
  */
-class Text_CAPTCHA_Driver_Word_Test extends PHPUnit_Framework_TestCase
+class Text_CAPTCHA_Driver_Word_Test extends PHPUnit\Framework\TestCase
 {
     /**
      * Test instance
diff -U 3 -H -d -r -N -- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Test.php /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Test.php
--- /home/kkoop/src/php-text-captcha-1.0.2-old/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Test.php	2015-11-13 07:41:37.000000000 +0100
+++ /home/kkoop/src/php-text-captcha-1.0.2-new/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Test.php	2018-05-02 14:44:32.135335964 +0200
@@ -20,7 +20,7 @@
  * @license  BSD License
  * @link     http://pear.php.net/package/Text_CAPTCHA
  */
-class Text_CAPTCHA_Test extends PHPUnit_Framework_TestCase
+class Text_CAPTCHA_Test extends PHPUnit\Framework\TestCase
 {
     /**
      * test invalid driver name.
@@ -29,7 +29,7 @@
      */
     public function testInvalidDriverName()
     {
-        $this->setExpectedException("Text_CAPTCHA_Exception");
+        $this->expectException("Text_CAPTCHA_Exception");
         Text_CAPTCHA::factory('invalidDriver');
     }
 
@@ -40,7 +40,7 @@
      */
     public function testNoDriverName()
     {
-        $this->setExpectedException("Text_CAPTCHA_Exception");
+        $this->expectException("Text_CAPTCHA_Exception");
         Text_CAPTCHA::factory('');
     }
 
@@ -70,7 +70,7 @@
      */
     public function testInit()
     {
-        $this->setExpectedException("Text_CAPTCHA_Exception");
+        $this->expectException("Text_CAPTCHA_Exception");
         $captcha = Text_CAPTCHA::factory('Word');
         $captcha->generate();
     }
@@ -82,7 +82,7 @@
      */
     public function testNullDriver()
     {
-        $this->setExpectedException("Text_CAPTCHA_Exception");
+        $this->expectException("Text_CAPTCHA_Exception");
         new Text_CAPTCHA(null);
     }
 }
