public function iShouldNotBeAbleToDeleteMyOwnAccount() { try { $this->customerShowPage->deleteAccount(); } catch (ElementNotFoundException $exception) { return; } throw new \DomainException('Delete account should throw an exception!'); }