Skip to content

Commit 8b17074

Browse files
committed
More refined testing for gear starting and registering.
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
1 parent 191041c commit 8b17074

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/gear.test.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public function testCanStartGear()
2929

3030
$manager->register($gear);
3131

32-
$this->assertTrue($manager->start('stub') instanceof Feather\Components\Gear\Container);
32+
$this->assertInstanceOf('Feather\\Components\\Gear\\Container', $gear = $manager->start('stub'));
33+
$this->assertTrue($manager->started('stub'));
34+
$this->assertInstanceOf('Feather\\Gear\\Stub\\Mock', $gear['mock']);
3335
}
3436

35-
36-
3737
}

0 commit comments

Comments
 (0)