public function testEnsureNotInstanceOfFailed() { $this->setExpectedException(self::ENSURE_EXCEPTION, 'check 1 2 3'); $a = new Foo(); Ensure::isNotInstanceOf('twentysteps\\Commons\\EnsureBundle\\Tests\\Foo', $a, 'check %s %s %s', 1, 2, 3); }