public function testEnsureExistingFailed() { $this->setExpectedException(self::ENSURE_EXCEPTION, 'check 1 2 3'); $arr = array('b' => 'b'); Ensure::isExisting($arr['a'], 'check %s %s %s', 1, 2, 3); }