class MyTestCases extends TestCase { public function testOutput() { $this->assertEquals(getIDS('1345'), 13); $this->assertEquals(getIDS('12'), 3); $this->assertEquals(getIDS('110'), 2); $this->assertEquals(getIDS('011'), 2); } }
- class MyTestCases extends TestCase
- {
- public function testOutput() {
$this->assertEquals(getIDS(1345), 13);$this->assertEquals(getIDS(12), 3);$this->assertEquals(getIDS(110), 2);$this->assertEquals(getIDS(011), 2);- $this->assertEquals(getIDS('1345'), 13);
- $this->assertEquals(getIDS('12'), 3);
- $this->assertEquals(getIDS('110'), 2);
- $this->assertEquals(getIDS('011'), 2);
- }
- }