public function testCount() { $this->assertSame(0, $this->_collection->count()); $this->_collection->addMethod(new StubbedMethod('doBar', new ArgumentCollection(), 'foo')); $this->assertSame(1, $this->_collection->count()); $this->_collection->addMethod(new StubbedMethod('doFoo', new ArgumentCollection(), 'foo')); $this->assertSame(2, $this->_collection->count()); }