public function isInstanceOf($exception) { AssertAdapter::assertTrue(class_exists($exception), "Cannot find expected exception class: {$exception}."); AssertAdapter::assertInstanceOf($exception, $this->exception); return $this; }