Skip to content

Commit

Permalink
Merge branch 'carusogabriel-phpunit' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Apr 29, 2018
2 parents 95e805e + 23060ff commit 181dc55
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/unit/phpDocumentor/Descriptor/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ public function testClearingTheCollection()
*/
public function testIfExistingElementsAreDetected()
{
$this->assertFalse(isset($this->fixture[0]));
$this->assertArrayNotHasKey(0, $this->fixture);
$this->assertFalse($this->fixture->offsetExists(0));

$this->fixture[0] = 'abc';

$this->assertTrue(isset($this->fixture[0]));
$this->assertArrayHasKey(0, $this->fixture);
$this->assertTrue($this->fixture->offsetExists(0));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testAdd()
$this->object[] = $file;

$this->assertCount(1, $this->object);
$this->assertTrue(isset($this->object['test']));
$this->assertArrayHasKey('test', $this->object);
$this->assertSame($file, $this->object['test']);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function testCountBehavioursInCollection()

// Assert
$this->assertCount(1, $this->fixture);
$this->assertSame(1, count($this->fixture));
$this->assertCount(1, $this->fixture);
$this->assertSame(1, $this->fixture->count());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function testIfLoadRetrievesTemplateFromFactoryAndRegistersIt()

// Assert
$this->assertCount(1, $this->fixture);
$this->assertTrue(isset($this->fixture[$templateName]));
$this->assertArrayHasKey($templateName, $this->fixture);
$this->assertSame($template, $this->fixture[$templateName]);
}

Expand Down

0 comments on commit 181dc55

Please sign in to comment.