public function testConstructionWithChecks() { $check1 = new AlwaysSuccess(); $check2 = new AlwaysSuccess(); $this->runner = new Runner(array(), array($check1, $check2)); $this->assertEquals(2, count($this->runner->getChecks())); $this->assertContains($check1, $this->runner->getChecks()); $this->assertContains($check2, $this->runner->getChecks()); }