getMessage()); self::assertNotContains('bar', (string) $sut); self::assertEquals('Could not find user foo with password **** in your LDAP', $sut->getMessage()); } }