Permalink
Browse files

Replaced assertEquals(false, ...) with assertFalse(...)

  • Loading branch information...
1 parent 2798c74 commit 2f60a31574f02e4056526c30ffa7839f36167a02 @DaSourcerer DaSourcerer committed Aug 13, 2012
@@ -15,7 +15,7 @@ public function testCanGetProperty()
public function testCanNotGetUndefinedProperty()
{
$collection = new CAttributeCollection(array(), true);
- $this->assertEquals(false, $collection->canGetProperty('Property'));
+ $this->assertFalse($collection->canGetProperty('Property'));
$this->setExpectedException('CException');
$value=$collection->Property;
}
@@ -39,7 +39,7 @@ public function testGetCaseSensitive()
{
$collection = new CAttributeCollection();
$collection->caseSensitive=false;
- $this->assertEquals(false, $collection->caseSensitive);
+ $this->assertFalse($collection->caseSensitive);
$collection->caseSensitive=true;
$this->assertTrue($collection->caseSensitive);
}
@@ -83,23 +83,23 @@ public function testUnset(){
public function testIsset(){
$collection = new CAttributeCollection();
- $this->assertEquals(false, isset($collection->Property));
+ $this->assertFalse(isset($collection->Property));
$collection->Property = 'value';
$this->assertTrue(isset($collection->Property));
}
public function testContains()
{
$collection = new CAttributeCollection();
- $this->assertEquals(false, $collection->contains('Property'));
+ $this->assertFalse($collection->contains('Property'));
$collection->Property = 'value';
$this->assertTrue($collection->contains('Property'));
}
public function testHasProperty()
{
$collection = new CAttributeCollection();
- $this->assertEquals(false, $collection->hasProperty('Property'));
+ $this->assertFalse($collection->hasProperty('Property'));
$collection->Property = 'value';
$this->assertTrue($collection->hasProperty('Property'));
}
@@ -44,7 +44,7 @@ public function testGetReadOnly()
$list = new CList(null, true);
$this->assertTrue($list->getReadOnly(), 'List is not read-only');
$list = new CList(null, false);
- $this->assertEquals(false, $list->getReadOnly(), 'List is read-only');
+ $this->assertFalse($list->getReadOnly(), 'List is read-only');
}
public function testGetCount()
@@ -86,7 +86,7 @@ public function testRemove()
$this->assertEquals(-1,$this->list->indexOf($this->item1));
$this->assertEquals(0,$this->list->indexOf($this->item2));
- $this->assertEquals(false,$this->list->remove($this->item1));
+ $this->assertFalse($this->list->remove($this->item1));
}
@@ -45,7 +45,7 @@ public function testContains()
{
$queue = new CQueue(array(1, 2, 3));
$this->assertTrue($queue->contains(2));
- $this->assertEquals(false, $queue->contains(4));
+ $this->assertFalse($queue->contains(4));
}
public function testPeek()
@@ -45,7 +45,7 @@ public function testContains()
{
$stack = new CStack(array(1, 2, 3));
$this->assertTrue($stack->contains(2));
- $this->assertEquals(false, $stack->contains(4));
+ $this->assertFalse($stack->contains(4));
}
public function testPeek()
@@ -59,7 +59,7 @@ public function testDistinct()
$command=$this->_connection->createCommand();
// default value
- $this->assertEquals(false, $command->distinct);
+ $this->assertFalse($command->distinct);
// select distinct
$command->selectDistinct('id, username');
@@ -68,7 +68,7 @@ public function testDistinct()
// getter and setter
$command->distinct=false;
- $this->assertEquals(false, $command->distinct);
+ $this->assertFalse($command->distinct);
$command->distinct=true;
$this->assertTrue($command->distinct);
}
@@ -312,7 +312,7 @@ function testMergeWith() {
$this->assertEquals(20, $criteria1->limit);
$this->assertEquals(6, $criteria1->offset);
$this->assertEquals('alias2', $criteria1->alias);
- $this->assertEquals(false, $criteria1->distinct);
+ $this->assertFalse($criteria1->distinct);
// empty order, group, join, having are being replaced

0 comments on commit 2f60a31

Please sign in to comment.