public function testUpdateSpec() { $injector = new Injector(); $services = array('AnotherService' => array('src' => TEST_SERVICES . '/AnotherService.php', 'properties' => array('filters' => array('One', 'Two')))); $injector->load($services); $injector->updateSpec('AnotherService', 'filters', 'Three'); $another = $injector->get('AnotherService'); $this->assertEquals(3, count($another->filters)); $this->assertEquals('Three', $another->filters[2]); }