public function testWithAlias() { $c = new TestableModelCriteria('bookstore', 'Propel\\Tests\\Bookstore\\Book'); $c->join('Propel\\Tests\\Bookstore\\Book.Author a'); $c->with('a'); $withs = $c->getWith(); $this->assertTrue(array_key_exists('a', $withs), 'with() uses the alias for the index of the internal list of Withs'); }