From 77f69b033d30505183fb9e6bd43b27a0052347f0 Mon Sep 17 00:00:00 2001 From: Vyacheslav Agafonov Date: Thu, 1 Dec 2011 11:57:05 +0400 Subject: [PATCH] replacement @expectedException to setExpectedException --- tests/ConfigTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php index 690100a..c6a6bbd 100644 --- a/tests/ConfigTest.php +++ b/tests/ConfigTest.php @@ -34,10 +34,6 @@ class ConfigTest extends PHPUnit_Framework_TestCase $this->assertNotEquals('Config', get_class(Config::getInstance())); } - /** - * @expectedException GeneralException - * @expectedExceptionMessage Configuration variable - */ public function testArrayAsParam() { $arr = array( @@ -46,7 +42,7 @@ class ConfigTest extends PHPUnit_Framework_TestCase 'three' => 3, 4 => 'four' ); - + $this->setExpectedException('GeneralException', 'Configuration variable'); Config::set(0, $arr); $new_arr = Config::get(0); $this->assertEquals('ConfigArray', get_class($new_arr));