1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/Export/ReporterTestCase.php

17 lines
553 B
PHP
Raw Normal View History

2006-12-28 00:30:25 +03:00
<?php
class BadLyNamed__Class extends Doctrine_Record {
public function setTableDefinition() {
}
public function setUp() { }
}
class Doctrine_Export_Reporter_TestCase extends Doctrine_UnitTestCase {
public function testExportChecksClassNaming() {
$reporter = $this->export->export('BadLyNamed__Class');
// Class name is not valid. Double underscores are not allowed
$this->assertEqual($reporter->pop(), array(E_WARNING, 'Badly named class.'));
}
}