Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ZendTest\Db

@setExpectedException -> $this->setExpectedException(...)
  • Loading branch information...
commit 41702c9589b0cc82f24faf1efe67e1133bd95021 1 parent 41f6fc6
@ralphschindler ralphschindler authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/ZendTest/Db/Sql/SelectTest.php
View
6 tests/ZendTest/Db/Sql/SelectTest.php
@@ -44,7 +44,7 @@ public function testFrom()
}
/**
- * @testdox unit test: Test getRawState() returns infromation populated via from()
+ * @testdox unit test: Test getRawState() returns information populated via from()
* @covers Zend\Db\Sql\Select::getRawState
* @depends testFrom
*/
@@ -66,7 +66,7 @@ public function testQuantifier()
}
/**
- * @testdox unit test: Test getRawState() returns infromation populated via from()
+ * @testdox unit test: Test getRawState() returns information populated via from()
* @covers Zend\Db\Sql\Select::getRawState
* @depends testQuantifier
*/
@@ -243,7 +243,6 @@ public function testWhereArgument1IsAssociativeArrayNotContainingReplacementChar
/**
* @testdox unit test: Test where() will accept any array with string key (without ?) with Predicate throw Exception
* @covers Zend\Db\Sql\Select::where
- * @expectedException Zend\Db\Sql\Exception\InvalidArgumentException
*/
public function testWhereArgument1IsAssociativeArrayIsPredicate()
{
@@ -252,6 +251,7 @@ public function testWhereArgument1IsAssociativeArrayIsPredicate()
'name' => new Predicate\Literal("name = 'Ralph'"),
'age' => new Predicate\Expression('age = ?', 33),
);
+ $this->setExpectedException('Zend\Db\Sql\Exception\InvalidArgumentException', 'Using Predicate must not use string keys');
$select->where($where);
}
Please sign in to comment.
Something went wrong with that request. Please try again.