Removing code left from testing

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5398 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-07-08 02:53:23 +00:00
parent 8229587cfe
commit 1963c3b501

View file

@ -50,11 +50,10 @@ class EmailTest extends CakeTestCase {
function testBadSmtpSend() { function testBadSmtpSend() {
if(@fsockopen('localhost', 25)) { if(@fsockopen('localhost', 25)) {
$this->skipUnless(@fsockopen('localhost', 25), 'Must be able to connect to localhost port');
$this->Controller->Email->smtpOptions['host'] = 'blah'; $this->Controller->Email->smtpOptions['host'] = 'blah';
$this->assertFalse($this->Controller->Email->send('Should not work')); $this->assertFalse($this->Controller->Email->send('Should not work'));
} else { } else {
$this->skipUnless(@fsockopen('localhost', 25), 'Must be able to connect to localhost port'); $this->skipUnless(@fsockopen('localhost', 25), 'Must be able to connect to localhost port 25');
} }
} }