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