lithium\tests\cases\util\CollectionTest::testValueAppend PHP Метод

testValueAppend() публичный Метод

Tests objects and scalar values being appended to the collection.
public testValueAppend ( )
    public function testValueAppend()
    {
        $collection = new Collection();
        $this->assertFalse($collection->valid());
        $this->assertCount(0, $collection);
        $collection->append(1);
        $this->assertCount(1, $collection);
        $collection->append(new stdClass());
        $this->assertCount(2, $collection);
        $this->assertEqual(1, $collection->current());
        $this->assertEqual(new stdClass(), $collection->next());
    }