Пример #1
0
 public function testInstanceOfPerSetters()
 {
     $like = new Like();
     $this->assertInstanceOf('Zend\\Db\\Sql\\Predicate\\Like', $like->setIdentifier('bar'));
     $this->assertInstanceOf('Zend\\Db\\Sql\\Predicate\\Like', $like->setSpecification('%1$s LIKE %2$s'));
     $this->assertInstanceOf('Zend\\Db\\Sql\\Predicate\\Like', $like->setLike('foo%'));
 }
Пример #2
0
 public function testAccessorsMutators()
 {
     $like = new Like();
     $like->setIdentifier('bar');
     $this->assertEquals('bar', $like->getIdentifier());
     $like->setLike('foo%');
     $this->assertEquals('foo%', $like->getLike());
     $like->setSpecification('target = target');
     $this->assertEquals('target = target', $like->getSpecification());
 }